Clara-Doc - Method Reference

 / packages  / CTBASE  / Version 01.00.00  / CTMAPX

CTMAPX_Insert
Description
Inserts an item in the map.

Prototype

			     DCTMAPX_Insert...
     D                 PR            10I 0
     D@This                            *   Value
     D@Key                             *   Value
     D@Value                           *   Value
     D@ValueSize                     10I 0 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 kiey value has to be a NULL-terminated character string. If using a VarChar for the key, care must be taken to insure that the address actually points to the data portion.
@Value
TypePointer (*)
Passing ModeValue
DescriptionThe address of a caller-supplied buffer. Don't use a CTBUFF instance. This buffer can be a local variable or a buffer allocated with a call to %Alloc.
@ValueSize
Type10I 0
Passing ModeValue
DescriptionThe size in bytes of the @Value parameter.
Return Values

Symbolic ConstantValueDescription
CS_SUCCESS0The item has been inserted in the map successfully.
CS_FAILURE1The item could not be inserted. This could be because the key is *null or the key size is zero.