Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Collection - Deatiled object description

See: Object Collection
 

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" page 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" page. 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" page. In the following script the value of all these variables will be increased by 10.
JavaScriptVBScriptSelect and copy to clipboard

var i;
for (i = 0; i <= oData.Count; i++)
oData.Item(i).Value = oData.Item(i).Value + 10;
PROMOTIC 9.0.7 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
 
- Collection - Deatiled object description
 
 
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice