Promotic

GetChildCount - method of the PmgObject object

Description:
Returns the number of nested Pmg objects.
Syntax:
Long GetChildCount()
Note:
For Pma object the GetOwnedNum method can be used for the same purpose.

This method is also functional in Web panels.
See also:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var i, oObject;
var oRoot = pMe.Root;
var nChildCount = oRoot.GetChildCount();
for (i = 0; i < nChildCount; i++)
{
oObject = oRoot.GetChildByIndex(i);
Pm.Debug(oObject.Name);
}
PROMOTIC 9.0.21 SCADA system documentation - MICROSYS, spol. s r.o.

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