val = oData.Item(id).Value
oData.Item(id).Value = val
Set obj = oData.Item(id)
|id||(Variant) Specifies the variable. The value is: |
- Name (String, case sensitive text, for example "a1") or
- Index (Long, zero-based index)
The PmVar object includes information about the variable (value, name, index, etc.).
The reference to PmVar object can also be done directly by extending the path of the Pm method by means of the #vars identifier. This identifier can be used e.g. for the Pm method, or for the PP data binding in the application and in panels. For example the method Pm("/data/#vars/Temperature) returns the "Temperature" variable (PmVar) in the "data" object(PmaData).
References to Data extensions objects in the PmVar variable can also be done directly by extending the path of the Pm method using the #ext identifier. This can be used in the Pm method or in PP binding in the application and in panels. For example the method pMe.Pm("/data/#vars/Temperature/#ext/al") returns the data extension with al identifier (ExtAlarmAnalog) in the "Temperature" variable (PmVar) in the "data" object (PmaData).