Origin Child Window Names and LabelsOrigin supports both Names and Labels for Child Windows (Worksheet, Graph, Matrix and Layout pages). The property that controls what gets displayed in the window Title is:
PAGE.TITLE
which can take on the following values:
0 = Display Name - Label may not be set (default) 1 = Display Label only 2 = Display Name only 3 = Diplay both Name and Label
The string value of the Label is stored in:
PAGE.LABEL
which can be accessed by:
page.label$="Test #5104 without stabilizer"; to set a label %M=page.label$; to read a label into the %M variable
You can type %L=PAGE.LABEL$; into the Tools:Worksheet Script text box and check the "Run Script Automatically after Import" box to have a Worksheet update the %L variable after every Import.
The %E variable contains the Name (never the Label) of the last worksheet to contain a selection other than a single cell. As such, its use in automation should be carefully crafted to also check worksheet selection properties.