Skip to main content

This version of the product is no longer supported, and this documentation is no longer updated regularly. See the latest version of this content.Opens in a new tab

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.

FeedbackOpens in a new tab