Promotic
WikipediaLinkedInYoutubeTwitterFacebook

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 tree of Pma objects!

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("Object name = " + o.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