Skip to main content

System Object

The System object provides access to properties and methods of Caché components.


The System object is an intrinsic object with global scope. There is no need to create an instance of it.

Through the System object programs have access to properties and methods related to the following components: Activate, CSP, Encryption, Help, OBJ, SQL and Version.

For detailed information on the System object, look at the class definitions in the %SYSTEM package.


The following example demonstrates how to use the System object:

Println System.Version.GetCompBuildOS() 
    ' prints the OS version
    ' for which this Caché Version was built
Println System.Version.GetNumber()      'prints the Version number
Println System.Version.GetVersion()     'prints the Version string

Please note that the System object in ObjectScript is referenced by $System and in Caché Basic by System.


The System object may be referenced anywhere in the basic program.

FeedbackOpens in a new tab