Tech Tip: Quick way to find out which platform you are on
PRODUCT: 4D | VERSION: 11.5 | PLATFORM: Mac & Win
Published On: December 3, 2009
Here is a method that can be used in your application to quickly find out if you are on a Windows or Mac OS X platform. The method returns True if you are on a Mac OS and False if you are on a Windows OS.
` --[HEADERSTART]------------------------------------- ` Description: ` Utility function to see what platform we are on. ` ` Return Value: ` C_BOOLEAN($0) = True if Mac, False otherwise. ` --[HEADEREND]--------------------------------------- C_LONGINT($vlPlatform) C_BOOLEAN($0) PLATFORM PROPERTIES($vlPlatform) If ($vlPlatform#Windows ) $0:=True Else $0:=False End if |