Set Statement (FPScript)
23.08.2021
Assigns an object reference to a variable or a list element.
Syntax
Set Target = Expression
The syntax of the Set statement consists of the following elements:
Element |
Description |
---|---|
Target |
Expression that refers to a variable or a list element. |
Expression |
Any expression that returns an object reference. |
Available in
FlexPro View, Basic, Professional, Developer Suite
Examples
Set Obj = DataSet Obj.Unit |
assigns to the Obj variable a reference to DataSet. The data set's Unit property is then accessed. |
Set List.[1n]= Formula |
is an assignment of a reference to Formula to the second element in the list stored in List. |