Update cookies preferences
Promotic

GetVarCount - method of the PmgObject object

Description:
Returns the number of nested Pmg object.
Syntax:
Long GetVarCount()
Note:
This method is also functional in Web panels.
See also:
- PmgObject.Vars (method)
Example:
JavaScriptVBScriptSelect and copy to clipboard

var iVar, oVar;
var oRoot = pMe.Root;
var nCount = oRoot.GetVarCount();
for (iVar = 0; iVar < nCount; iVar++)
{
oVar = oRoot.Vars(iItem);
Pm.Debug(oVar.Name + ": " oVar.Value);
}

History:
Pm9.00.25: Created
PROMOTIC 9.0.28 SCADA system documentation MICROSYS, spol. s r.o.

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