GetPosition Method (XDATA)


9.8A

 

The GetPosition method returns the numeric position of the current node. This position value is unique value for each existing node. The method uses the following format:

 

[label]

{object}.GetPosition

[GIVING {return}]

Where:

label
Optional. A Program Execution Label.
object
Required. An XDATA object.
return
Optional. A Numeric Variable that receives the position of the current node.

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 TRUE if the position value is too large to be stored in the {return} numeric variable.

  3. The EOS flag is always set FALSE.

  4. The MoveToNode method repositions to the value returned by the GetPosition method.

 

 

See Also: XDATA, XDATA Methods, Method Syntax



PL/B Language Reference GetName Method (XDATA) GetPubId Method (XDATA)