id | (Variant) Specifies the variable. The value je:
- Name (String, case sensitive text, for example "d1") or
- Index (Long, zero-based index) |
---|---|
nAttr | (Long) It allows to change the behavior of the method.
0 (default) - default behavior (as the Item method).
1 - When referencing the non-existing object, the global error of the INFO system will not be generated. |
var oData = pMe.Pm("/Data");
var oItemEx = oData.ItemEx(0);
// Access to the object that represents the variable
var value = oItemEx.Value;
// Reading the value
oItemEx.Value = 8;
// Writing the value
var oData = pMe.Pm("/Data");
var oItem = oData.ItemEx("Temperature3", 1);
if (!oItem)
{
// ...
}