Gestalt

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 6.0


Gestalt (selector; value) Number

ParameterTypeDescription
selectorString4-character gestalt selector
valueNumberGestalt result
Function resultNumberError code result

Description

The Gestalt command returns in value a numeric value that denotes the characteristics of your system hardware and software, depending on the selector you pass in selector.

If the requested information is obtained, Gestalt returns 0 in function result; otherwise, it returns the error -5550. If the selector is unkown, Gestalt returns the error -5551.

Important: The Gestalt Manager is part of Mac OS. On Windows, some of the selectors are also implemented, but the usefulness of this command is limited.

For more information about the selectors that you can pass to Gestalt, refer to the Apple Developer documentation related to the Gestalt Manager, available on-line at the following address: http://developer.apple.com/documentation/Carbon/Reference/Gestalt_Manager/index.html

Example

On Macintosh, using version 9.2 of Mac OS, the following code displays the alert "You're running system version 0x0920":

   $vlErrCode:=Gestalt("sysv";$vlInfo)
   If ($vlErrCode=0)
        ALERT("You're running system version "+String($vlInfo;"&x"))
   End if 

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next