Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetChildByIndex - method of the PmgObject object

Description:
Returns the nested Pmg object defined by order.
Syntax:
Object GetChildByIndex(Long nIndex)
Parameters:
nIndex(Long) the order (index) of the nested Pmg object (zero-based index).
Note:
It is used mainly for multiple modifications of nested Pmg objects of certain type.

For Pma object the GetOwnedByIndex 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