Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see the InterSystems IRIS Migration Guide and Migrating to InterSystems IRIS, both available on the WRC Distributions page (login required).

Caché Objects

Accessing class methods from MVBasic.


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()
Copy code to clipboard

This returns the current Caché Objects version number. This is similar to the information returned by the MVBasic SYSTEM(41) function.

In ObjectScript, the same class method would be invoked using dot syntax, as follows:

Copy code to clipboard

For further details on $SYSTEM classes, refer to the InterSystems Class Reference.

See Also