Calculations Property (FPScript)
Read access to the value of a data object calculation.
Syntax
[DataObject].Calculations(Name)
The syntax of the Calculations property consists of the following elements:
Element |
Description |
---|---|
DataObject |
Optional. The data 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. |
Name |
Required. A string with the name of the calculation. |
Remarks
If the calculation result is a quantity with a unit, only its value is returned. Use the Calculations.Unit property to access the unit.
Available in
FlexPro Basic, Professional, Developer Suite
Examples
.Calculations("Frequency") |
Accesses the calculation called "Frequency", which is saved in the formula calculation list. |
ChangeUnit(.Calculations("Frequency"), .Calculations("Frequency").Unit) |
Recombines the value and unit of a quantity "Frequency", which is stored in the calculation list of the formula. |