FindNext Method (XDATA)


9.8A

 

The FindNext method locates the next node that matches the criteria as defined by the filter for the last FindNode method. The method uses the following format:

 

[label]

{object}.FindNext

[GIVING {return}]

Where:

label
Optional. A Program Execution Label.
object
Required. An XDATA object.
return
Optional. A Numeric Variable that receives a value to signify a pass or fail condition for the method execution.

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 {return} variable is too small where the returned value is truncated.

  3. The EOS flag is always cleared.

  4. The {return} value is a zero if the method execution is successful. Otherwise, a non-zero value is returned to indicate an error has occurred. See the XDATA Method Return Values for more details.

  5. This method can return these values:

  6.  

    Value

    Meaning

    0

    XDATA_ERR_NONE (Success)

    1

    XDATA_ERR_NO_MEM

    2

    XDATA_ERR_INVALID_POSITION_TYPE

    11

    XDATA_ERR_INVALID_POSITION

 

 

See Also: XDATA, XDATA Methods, Method Syntax



PL/B Language Reference DeleteNode Method (XDATA) FindNode Method (XDATA)