Promotic

Collection - Deatiled object description

See: the Collection object.

In the PROMOTIC system the Pma objects can be collections themselves or they can include a property that represents a collection.
For example, the PmaData object is the collection of variables defined on the "Data" tab of this object.
Each object that forms a collection, has got, except its own properties and methods, properties and methods of the collection, by which it is possible to deal with individual items of the collection or to determine their number, etc.
Example1:
' The PmaData object has defined the variable Temperature on the "Data" tab. In the following script the value of this variable will be increased by 10.:
JavaScriptVBScriptSelect and copy to clipboard

oData.Item("Temperature").Value = oData.Item("Temperature").Value + 10;
Example2:
The PmaData object has defined three variables with the following names first, second, third on the "Data" tab. In the following script the value of all these variables will be increased by 10.
JavaScriptVBScriptSelect and copy to clipboard

var iRow;
for (iRow = 0; iRow <= oData.Count; iRow++)
{
oData.Item(iRow).Value = oData.Item(iRow).Value + 10;
}
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.