Read access to the data of a data object. Read/write access to the data of the current formula.
Syntax
DataObject.data
or
this.data = Data
The syntax of the data property consists of the following elements:
Element |
Description |
---|---|
DataObject |
The data object being accessed. Use this to access the current formula. |
Data |
The data to be assigned to the current formula as a result. It can be provided as a flexpro.Data object or as Python data. |
Remarks
Write access to the data is only permitted for the formula in which the Python code is located.
Available In
FlexPro Professional, Developer Suite
Examples
flexpro.object(r'\dataset’).data |
Returns the data of a data set. |
flexpro.object(r'\list’)[0].data |
Returns the data of the first element of a list. |
this.data = -10 |
Sets the result of the current formula to the value -10. |
this.data = flexpro.Data(1.3, "V") |
Sets the result of the current formula to the value 1.3 V. |