$NAme()

Returns an evaluated representation of some or all of a local or global variable name.

The format for the $NAME function is:

$NA[ME](glvn[,intexpr])

Examples of $NAME()

Example:

GTM>set X="A""B",^Y(1,X,"B",4)="" 
GTM>write $name(^(3),3)
^Y(1,"A""B","B")
GTM>

This example sets up a naked reference and then uses $NAME() to display the first three levels of that four-level reference.

Example:

GTM>write $name(^(3),0)
^Y
GTM>

This example shows the name level for the same naked reference.