Clara-Doc - Method Reference

 / packages  / CTBASE  / Version 01.00.00  / CTMAPX

CTMAPX_IterNextSize
Description
Returns the size in bytes of the next available item within an iteration loop.

Prototype

			     DCTMAPX_IterNextSize...
     D                 PR            10I 0
     D@This                            *   Value
     D@KeySize                       10I 0
     D@ValueSize                     10I 0
						
Parameters
@This
TypePointer (*)
Passing ModeValue
DescriptionThe address of a CTMAPX instance. This pointer MUST be obtained through a call to CMAPX_Constructor.
@KeySize
Type10I 0
Passing ModeValue
DescriptionThis is just an OUT parameter. On return, this parameter will hold the item's key size.
@ValueSize
Type10I 0
Passing ModeValue
DescriptionThis is only an OUT parameter. On return, this paramter will hold the actual size in bytes of the next available item.
Return Values

Symbolic ConstantValueDescription
CS_SUCCESS0There is a next available item and its key size and value size have been returned in the supplied parameters.in the @
CS_FAILURE1We are at the end of the list and there is no next item. Don't rely on the returned parameter values being set to zero in order to determine that there is no next item. The map allows for zero size items.