System.Version

From Xojo Documentation

Method

System.Version() As System.VersionData

New in 2019r3

Supported for all project types and targets.

Information about the current OS system version.

Notes

  • Can compare against text numbers formatted as "Major.Minor.Patch".
If System.Version >= "10.14.1" Then
  • Automatically adds "0" to any missing segments. "14" is changed to "13.0.0" before the comparison is done.

  • Use System.VersionData.ToString to display the OS version.