Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetOwnedByType - method of object PmaObject

Description:
Returns the array of references to the subobjects of the defined type in the tree of Pma objects.
Syntax:
Array GetOwnedByType(String sClass, Long nMode)
Calling:
arr = oObject.GetOwnedByType(sClass, 0)
Parameters:
sClass(String) Text name of the object type. For example, "PmaPanel" or the text got by the ClassName property.
nMode(Long) Range of the required subobjects
0 - subobjects only on the first nesting level
1 - subobjects on all nesting level
Example:
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 i;
var arr = pMe.Pm("/").GetOwnedByType("PmaPanel", 1);
var nCount = arr.GetSize(1);
for (i = 0; i < nCount; i++)
Pm.Debug(arr.GetItem(i).Name);
PROMOTIC 9.0.4 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