Caché Basic Reference
System Object
[Back] 
   
Server:docs2
Instance:LATEST
User:UnknownUser
 
-
Go to:
Search:    

The System object provides access to properties and methods of Caché components.
Description
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.
Examples
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 Caché ObjectScript is referenced by $System and in Caché Basic by System.
Note
The System object may be referenced anywhere in the basic program.