Home > Language Reference > Classes > SystemInfo

Version Property

System version number.

Syntax

Public Property Get Version() As Long

Remarks

This property returns the complete version number of the system. This number can be divided into five parts, which occupy the following bits in the long integer returned:

BitsSignification
0 à 11Build number (should be 0 for release versions)
12 à 15Stage (3 : release, 2 : beta, 1 : alpha, 0 : development)
16 à 19Bug fix
20 à 23Minor version
24 à 31Major version

In combination with the And operator and whole division you can extract the required part of the complete version number. However, if you simply want to display the Palm OS® version on screen, it is easier to use the VersionString property directly.

On the other hand, this property is useful if you have to test the version number, for example to make sure that a function is available. It is only necessary in fact to compare the value returned by this property with the corresponding value of the required version that you can simply construct on the fly. The following example raises a 999 error if it finds that the Palm OS® version of the device on which it is running is less that 3.5.2:

Dim si as SystemInfo

Set si = SystemInfo
If si.Version < &H0352000 Then Err.Raise 999, "Invalid OS version"

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A