Read access to the value of an object parameter. Read/write access to the value of a parameter of the current formula.
Syntax
[Object].Parameters(Name)
or
[this].Parameters(Name) = Value
The syntax of the Parameters 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. |
Name |
Required. A string with the name of the parameter. |
Value |
The value to be assigned to the parameter. |
Available In
FlexPro Basic, Professional, Developer Suite
Remarks
If the parameter contains a quantity with a unit, only its value is returned. Use the Parameters.Unit property to access the unit.
If a parameter with this name does not yet exist when a parameter is written to, it is created automatically.
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.
Examples
.\.Parameters("Calibration Value") |
Accesses a parameter named "Calibration Value" that is stored in the folder where the formula is located. |
ChangeUnit(.Parameters("Sampling Rate"), .Parameters("Sampling Rate").Unit) |
Recombines the value and unit of a quantity "Sampling Rate", which is stored in the parameter list of the formula. |
.Parameters("Calibration Value") = 1.3 dB |
Assigns the value 1.3 dB to the "Calibration Value" parameter. |