Skip to main content
Previous section   Next section

MVBasic: Global Access

Caché MVBasic extends MultiValue Basic by providing access to Caché global arrays. The following MVBasic routine uses this syntax to display the data for the PERSON record with id 2:

P = ^PERSON("2")
PRINT "NAME: ":P<3>
PRINT "HAIR: ":P<2>
PRINT "AGE: ":P<1>
PRINT "PHONES: "
FOR I=1 TO DCOUNT(P<4>,@VM)
PRINT P<4,I>
NEXT I        
 
Note:
To learn more about Caché globals, read Globals in the Variables section of Using Caché ObjectScript.
Previous section   Next section