Caché MultiValue Basic Reference
Caché Objects
[Back] [Next]
   
Server:docs1
Instance:LATEST
User:UnknownUser
 
-
Go to:
Search:    

Accessing class methods from MVBasic.
$SYSTEM
You can access methods belonging to $SYSTEM classes from Caché MVBasic by using the –> syntax. The arrow (–>) indicates that what precedes it is the name of a class, and what follows it is something belonging to the class, such as a method.
A simple example of this usage in shown in the following:
CRT $SYSTEM.OBJ->Version()
This returns the current Caché Objects version number. This is similar to the information returned by the MVBasic SYSTEM(41) function.
In Caché ObjectScript, the same class method would be invoked using dot syntax, as follows:
  WRITE $SYSTEM.OBJ.Version()
 
For further details on $SYSTEM classes, refer to the InterSystems Class Reference.
See Also