Name Property (FPScript)
Read access to the name of an object. Read/write access to the name of the embedded FPScript formula.
Syntax
[Object].Name
The syntax of the Name property consists of the following elements:
Element |
Description |
---|---|
Object |
Optional. The object being accessed. If you omit this element, then the current formula is accessed. In the case of embedded FPScript you have to use the This keyword. |
Remarks
Write access to the header information of a data object is only allowed for the formula where the FPScript code is located. You should only use this option in embedded FPScript. For standard formula objects, you should edit the attribute on the General tab of the Properties dialog box instead.
If, for instance, a name is assigned to an embedded FPScript formula that returns the data for a curve in a diagram, this name is used to label the axis.
Available in
FlexPro Basic, Professional, Developer Suite
Examples
\Graphs\.Name or \Graphs.FLD.Name |
Returns the string "\Graphs". |
\Images\Diagram.2D.Name |
Returns the string "\Diagram". |
\.Name |
Returns the name of the current project database, e.g. "Projectdatabase1". |
.Name = "Data"; List.[0] |
An embedded FPScript formula that takes the first element of a list and assigns itself the name "Data". |