Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

GetSubElementCount() Method

  • Last UpdatedFeb 20, 2017
  • 1 minute read

Gets the total number of sub-elements from the indicated element.

Syntax

Object.GetSubElementCount(Path, ElementName)

Parameter

Path

The name of the path. For example:

\\NodeName\InTouch

If the path parameter is empty, the Alarm Tree Viewer control finds the first element of the tree that matches the indicated element name.

ElementName

The name of the element. For example, Group1.

Examples

The name of the control is AlarmTreeViewerCtrl1 and nTag1 is an integer or real tag.

nTag1 = #AlarmTreeViewerCtrl1.GetSubElementCount("", "Group1" );

nTag1 = #AlarmTreeViewerCtrl1.GetSubElementCount( "\\NodeName", "Group1" );

nTag1 = #AlarmTreeViewerCtrl1.GetSubElementCount( "\InTouch", "Group1" );

nTag1 = #AlarmTreeViewerCtrl1.GetSubElementCount( "\\NodeName\InTouch", "Group1" );

TitleResults for “How to create a CRG?”Also Available in