Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Item - property of object PmData

Description:
The property enables an access to the object of Var type that represents one variable defined on the page Data. The variable is there defined by the index parameter..
Syntax:
Item(index As Variant) As Object
Calling:
Reading the value:
val = oData.Item(index).Value
Writing the value:
oData.Item(index).Value = val
Access to the object that represents the variable:
Set obj = oData.Item(index)
Parameters:
index(Variant) Identification of the variable either by its name (String data type, case sensitive text, for example "a1") or by the index (zero-based index).
Note:
Property access for read only.

The Var object includes information about the variable (value, name, index, etc.).

The Item property (like Var object) is read only, which means that the object cannot be changed but for example it is possible to write into the Value of the Var object.

If the variable does'nt exist, Nothing value is returned. global error in the INFO system is generated. For variable existence testing, it is better to use the ItemEx property.

 
Identifier #vars:

The reference to Var object can also be done directly by extending the path of the Pm method using the #vars identifier. This identifier can be used in methods working with application object tree (e.g. for the Pm method), or for the PP binding in the application and in panels. For example the method Pm("/data/#vars/Temperature) returns the "Temperature" variable (Var) in the "data" object(PmData).

 
Identifier #ext:

References to Data extensions objects in the Var variable can also be done directly by extending the path of the Pm method using the #ext identifier. This can be used in Pm method or in PP binding in application and in panels. For example the pMe.Pm method ("/data/#vars/Temperature/#ext/al") returns the data binding with al identifier (ExtAlarmAnalog) in the "Temperature" variable (Var) in the "data" object (PmData).

See also:
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice