Promotic
WikipediaLinkedInYoutubeTwitterFacebook

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, oItem;
var oRoot = pMe.Root;
var nChildCount = oRoot.GetChildCount();
for (i = 0; i < nChildCount; i++)
{
oItem = oRoot.GetChildByIndex(i);
Pm.Debug(oItem.Name);
}
PROMOTIC 9.0.13 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice