nIndex | (Long) the order (index) of the nested Pmg object (zero-based index). |
---|
For Pma object the GetOwnedByIndex method can be used for the same purpose.
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);
}