11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

$NAME$NAMEReturns the name value of a variable or a portion of a subscript reference.$NAME(variable,integer)$NA(variable,integer)ParametersvariableintegerThe variable whose name value is to be returned. It can specify a localor global variable, which can be either subscripted or unsubscripted. Itdoes not need to be a defined variable. If variable is a subscripted global,you can specify a naked global reference.Optional — A numeric value that specifies which portion (level) of asubscript reference to return. It can be a positive integer, the name ofa variable, or an expression.When used, variable must be a subscriptedreference.Description$NAME returns a formatted form of the variable name reference supplied as variable. It doesnot check whether this variable is defined or has a data value. The value $NAME returnsdepends on the parameters used.• $NAME(variable) returns the name value of the specified variable in canonical form;that is, as a fully expanded reference.• $NAME(variable,integer) returns a portion of a subscript reference. Specifically, integercontrols the number of subscripts returned by the function.Execution of this function does not affect the naked indicator.Parametersvariablevariable can be a local or global variable, unsubscripted or subscripted. If variable is anextended global reference, $NAME returns the extended global reference as specified,without checking whether the specified namespace exists and without capitalizing thenamespace name. If variable is a naked global reference, $NAME returns the full globalreference.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 263

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!