Clara-Doc - Method Reference

 / packages  / CTBASE  / Version 01.00.00  / CTMAPX

CTMAPX_BInsert
Description
Inserts a value from a CTBUFF instance.

Prototype

			     DCTMAPX_BInsert...
     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 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 inserted successfully.
CS_FAILURE1The item could not be inserted. Either the @Key parameter is *null or the key size is zero.