Clara-Doc - Method Reference

 / packages  / CTBASE  / Version 01.00.00  / CTSTK

CTSTK_IterNext
Description
Moves to the next available stack item within an iteration loop.

Prototype

			     DCTSTK_IterNext...
     D                 PR            10I 0
     D@This                            *   Value
     D@Value                           *   Value
     D@Bytes                         10I 0
						
Parameters
@This
TypePointer (*)
Passing ModeValue
DescriptionThe address of a stack instance. This pointer MUST be obtained through a call to CTSTK_Constructor.
@Value
TypePointer (*)
Passing ModeValue
DescriptionThe address of a buffer where the next stack item will be copied.
@Bytes
Type10I 0
Passing ModeReference
DescriptionThe size in bytes of the caller-supplied buffer. On return, this parameter will hold the actual size of the stack item. The method will not copy more than @Bytes in the @Value parameter even if the stack item is larger.
Return Values

Symbolic ConstantValueDescription
CS_SUCCESS0The next available stack item has been copied in the caller-supplied buffer. The item itself remains in the stack.
CS_FAILURE1We are at the end of the iteration loop; there was no item left to retrieve from the stack.