Clara-Doc - Method Reference

 / packages  / CTBASE  / Version 01.00.00  / CTMAPX

CTMAPX_BIterNext
Description
Retrieves the next available map item in keyed order within an iteration loop.

Prototype

			     DCTMAPX_BIterNext...
     D                 PR            10I 0
     D@This                            *   Value
     D@Key                             *   Value
     D@Buffer                          *   Value
						
Parameters
@This
TypePointer (*)
Passing ModeValue
DescriptionThe address of a CTMAPX instance. This pointer MUST be obtained through a call to CMAPX_Constructor.
@Key
TypePointer (*)
Passing ModeValue
DescriptionThe address of a the caller-supplied buffer that will receive a copy of the key value associated with the returned map item.
@KeySize
Type10I 0
Passing ModeReference
DescriptionThis is just an OUT parameter. On return, this parameter will hold the item's key size. This happens to be the nmber of bytes copied into the @Key parameter.
@Buffer
TypePointer (*)
Passing ModeValue
DescriptionThe address of a caller-supplied CTBUFF instance. This instance MUST be allocated with a call to CTBUFF_Constructor.
Return Values

Symbolic ConstantValueDescription
CS_SUCCESS0The next map item has been returned successfully in the CTBUFF instance.
CS_FAILURE1We are at the end of the list. Another possibility is that the key size is smaller than the actual item key size. The @KeySize parameter will hold the actual key size on return.