Calculations.Unit Property (FPScript)
23.08.2021
Read access to the unit of a data object calculation.
Syntax
[DataObject].Calculations(Name).Unit
The syntax of the Calculations.Unit 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. |
Available in
FlexPro Basic, Professional, Developer Suite
Examples
.Calculations("Frequency").Unit |
Accesses the unit of a calculation called "Frequency", which is saved in the formula calculation list. |
ChangeUnit(.Calculations("Frequency"), .Calculations("Frequency").Unit) |
Recombines the value and unit of a calculation called "Frequency". |