GetVarCount - method of the PmgObject object
Description:
Returns the number of the Pmg object variables.
Syntax:
Long GetVarCount()
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);
}
Dim iVar, oVar, oRoot, nCount
Set oRoot = pMe.Root
nCount = oRoot.GetVarCount()
For iVar = 0 To nCount - 1
Set oVar = oRoot.Vars(iItem)
Pm.Debug oVar.Name & ": " oVar.Value
Next