GetOwnedByType - method of the PmaObject object

Returns an array of references to the subobjects of the defined type in the Pma objects tree.
Array GetOwnedByType(String sClass, Long nMode)
sClass(String) The name of the object type. For example "PmaPanel".
nMode(Long) Range of the required subobjects.
0 - subobjects only on the first nesting level
1 - subobjects on all nesting level
Return value:
PmArray object for JavaScript or Array data type for VBScript.
Obtains the array of references to all PmaPanel objects in the whole tree on all levels and the iteration by this array
JavaScriptVBScriptSelect and copy to clipboard

var iRow;
var arr = pMe.Pm("/").GetOwnedByType("PmaPanel", 1);
var nCount = arr.GetSize(1);
for (iRow = 0; iRow < nCount; iRow++)

Pm8.02.15: Fixed bug: The method returned also the object over which the method was called.
Pm8.01.07: Fixed bug: The method returned also the forbidden objects in runtime (see the "Disable object at application launch" configurator).
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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