ListGetNext

Top  Previous  Next

Syntax

POINTER = ListGetNext(pos as POINTER)

Description

Retrieves the next node in sequence.

Parameters

pos - The previous node returned by ListGetNext or ListGetFirst.

Return value

A pointer to the next node.

Remarks

See Also: ListGetFirst

Example usage

pos = ListGetFirst(mylist)
WHILE pos <> 0
     data = ListGetData(pos)
     PRINT #<INT>data,
     pos = ListGetNext(pos)
ENDWHILE