Previous Topic: GetMappedPathNext Topic: if


GetPlatform

GetPlatform

Returns the computer's platform. The return values are: WIN2000, WINXP, WINVI, or WIN7 (see the Definitions List). It takes one parameter that indicates whether to get the platform of the source computer or the destination computer. This parameter is optional and is a Boolean value. False is the default and indicates the destination; True indicates the current computer.

Note: The Boolean parameter can only be used during General and Apply functions. The parameter causes a syntax error or runtime error if used otherwise.

First parameter:

The machine (Boolean value)

Usage:
GetPlatform( [Boolean] );
Example:
if (GetPlatform(DESTINATION) == WINXP)
    ApplyWinXPWord();