Promotic

GetVarExtensions - method of the PmaOpcDaClientGroup object

Description:
Returns an array of all data extensions (of ExtOpcDa objects) registered in the PmaOpcDaClientGroup object (all items of this group).
Syntax:
Array GetVarExtensions()
Return value:
PmArray object for JavaScript or Array data type for VBScript.
Example:
Obtains an array of references to all registered ExtOpcDa objects in the PmaOpcDaClientGroup object ("/OpcDaClientData") with following listig of identifiers of each trend into the INFO system.
JavaScriptVBScriptSelect and copy to clipboard

var iItm;
var aVarExt = pMe.Pm("/OpcClient/Group1").GetVarExtensions();
var nItems = aVarExt.GetSize(1);

for (iItm = 0; iItm < nItems; iItm++)
{
Pm.Debug(aVarExt.GetItem(iItm).ItemId);
}

History:
Pm8.03.22: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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