Get(SystemPlatform)
Category: Get
Syntax: Get ( SystemPlatform ) |
Parameters: None
Data type returned: Number
Description:
Returns a number that represents the current platform on a user's computer.
Because FileMaker tends to change or add to the values in the platform-checking function (as new versions of operating systems become supported), checks against this function should be performed in a single, central location for ease of future updates. The results of the function may be stored in a global variable during startup, and then referred to for subsequent platform checks throughout the rest of the database. We recommend using a custom function for this purpose.
The reason that this function returns negative numbers is for backward compatibility. Positive 1 and 2 were used for operating systems that are no longer supported by FileMaker Pro.
Examples:
Function |
Results |
---|---|
Get (SystemPlatform) |
Returns -1 if the current platform is Mac OS X. |
Returns -2 if the platform is Windows 2000 or Windows XP. |