Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetOwnedByType - method of object PmObject

Description:
Returns the array of references to the subobjects of the defined type in the objects tree.
Syntax:
GetOwnedByType(sClass As String, nMode As Long) As Array
Calling:
arr = oObject.GetOwnedByType(sClass, 0)
Parameters:
sClass(String) Text name of the object type. For example, "PmPanel" 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 PmPanel objects in the whole tree on all levels and the iteration by this array
VBScriptSelect and copy to clipboard

Dim i, arr, nCount
arr = pMe.Pm("/").GetOwnedByType("PmPanel", 1)
nCount = UBound(arr)
For i = 0 To nCount
  Pm.Debug arr(i)
Next
PROMOTIC 8.3.26 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