Promotic

GetOwnedByIndex - method of the PmaObject object

Description:
Returns the subobject defined by its index.
Syntax:
Object GetOwnedByIndex(Long nIndex)
Parameters:
nIndex(Long) The order (Index) of the subobject (zero-based index).
Caution: The objects order does not have to match the order of objects in the Pma objects tree!
Note:
It is mainly used for multiple changes of subobjects of defined type.
For Pmg object the PmgObject.GetChildByIndex method can be used for the same purpose.
See also:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var o = pMe.Pm("/Folder").GetOwnedByIndex(1);
Pm.Debug("ObjectName=" + o.Name);
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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