Update cookies preferences
Promotic

GetVarCount - method of the PmgObject object

Description:
Returns the number of the Pmg object variables.
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.31 SCADA system documentation MICROSYS, spol. s r.o.

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