docs.intersystems.com
MultiValue Quick Start Tutorial
MVBasic: Global Access
[Home] [Back] [Next]
InterSystems: The power behind what matters   
Search:    

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.


Send us comments on this page
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA