ThisObject Keyword (FPScript)

23.08.2021

Provides access to the automation object that executes an embedded FPScript code.

Syntax

ThisObject

Remarks

Within a standard formula object ThisObject refers to this formula object and thus corresponds to This and ThisFPObject. If this is an embedded FPScript code, e.g. in a field for entering calculated results in the text of a cell table, then ThisObject refers to the Automation object that contains the code. In this example, it is the CellTableCell object, which represents the cell in the cell table.

When accessing the object properties to which ThisObject refers, the ThisObject keyword can be omitted.

Available in

FlexPro View, Basic, Professional, Developer Suite

Examples

ThisObject.Curves(1).Data.YValueObject.Unit(fpDataComponentY)

If this code is used in a field to label the Y axis of a 2D diagram, then the code returns the physical unit of the Y component of the data set, which was entered on the "Data" tab of the first curve.

.Curves(1).Data.YValueObject.Unit(fpDataComponentY)

The ThisObject keyword can be omitted when accessing object properties.

 

See Also

Embedded FPScript

This Keyword

ThisFPObject Keyword

Application Keyword

Share article or send as email:

You might be interested in these articles