GetVarExtensions - method of the PmaOpcDaClientGroup object
Syntax:
Array GetVarExtensions()
Return values:
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);
}
Dim iItm, aVarExt, nItems
aVarExt = pMe.Pm("/OpcClient/Group1").GetVarExtensions()
nItems = UBound(aVarExt) + 1
For iItm = 0 To nItems - 1
Pm.Debug aVarExt(iItm).ItemId
Next