^NAMEOF

Return string name of variable, type, or member

WSupported on Windows
USupported on Unix
VSupported on OpenVMS
NSupported in Synergy .NET
^NAMEOF(path)

Return value

name

The name of a variable, type, or member. (System.String)

Arguments

path

The path of a program entity. (a)

Discussion

^NAMEOF returns the name of a program entity in the form of a string, which can save you from having to retype such names (and possibly introduce errors) in your code.

Examples

The following example returns the string “path3”.

^nameof(path1.path2.path3)