ChildCount Method (XDATA)


9.8A

 

The ChildCount method retrieves the number of direct children the exists for the current node. The method uses the following format:

 

[label]

{object}.ChildCount

[GIVING {return}]

Where:

label
Optional. A Program Execution Label.
object
Required. An XDATA object.
Return
Optional. A Numeric Variable that receives the child count.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The ZERO flag is set if the {return} value is zero.

  2. The OVER flag is set if the {return} variable is too small where the returned value is truncated.

  3. The EOS flag is always cleared.

  4. The child count includes any child node type that is immediately connected to a parent node.

 

 

See Also: XDATA, XDATA Methods, Method Syntax



PL/B Language Reference CheckValidate Method (WINDOW) CreateAttribute Method (XDATA)