NameOf
Get the actual internal dataset name from a range string. This function is implemented for range that can be resolved to a worksheet column only.
To get the name of a range object like layer, page or column, you can use the obj.name$ property.
Function Form:
Nameof(rangeStr)$
Examples:
The following script displays internal dataset names of all columns in the current sheet.
loop(i,1,wks.ncols) { %A=nameof(!wcol(i))$; %A=; }
For example, this script may return the result like below:
Book1_AA@2
Book1_BB@2
You can also use this for a range variable, like
range a=1,b=2; nameof(a)$=; nameof(b)$=;
will dump
Book1_A Book1_B
See Also:
Colnum (function) to convert the column name to the column number