Clara-Doc - Method Reference

 / packages  / CTBASE  / Version 01.00.00  / CTMAPX

CTMAPX_BLookup
Description
Retrieves a map value into a CTBUFF instance.

Prototype

			     DCTMAPX_BLookup...
     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 contains the key value associated with the map item. The key value must be a NULL-terminated character string.
@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 item has been copied successfully in the CTBUFF instance.
CS_FAILURE1The item could not be found. Another possibility is that the key is *null or that the specified key size is zero.