Method

System.Gestalt


Warning

This item was deprecated in version 2014r3. There is no replacement.

Description

Returns the characteristic of system specified by Code (Macintosh only). Returns a Boolean, which is True if successful.

Sample code

This example gets the macOS version:

Dim major, minor, bug As Integer

If System.Gestalt("sys1", major) Then
  If System.Gestalt("sys2", minor) Then
    If System.Gestalt("sys3", bug) Then
      MsgBox "macOS v" + Str(major) + "." + Str(minor) + "." + Str(bug)
    End If
  End If
End If

Compatibility

All project types on all supported operating systems.