om.DomNode.getChildCount

Returns the number of children nodes.

Syntax

getChildCount()
  RETURNING result INTEGER

Usage

The getChildCount() method returns the number of children nodes in the current node.

This method is typically used to scan the children nodes of a DOM node, with the getChildByIndex() method.

DEFINE parent, child om.DomNode,
       index INTEGER
...
FOR index=1 TO node.getChildCount()
    LET child = parent.getChildByIndex(index)
    ...
END FOR