Skip to main content

Caché Objects

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 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

FeedbackOpens in a new tab