Clara-Doc - Method Reference

 / packages  / CTBASE  / Version 01.00.00  / CTMAPX

CTMAPX_ItemSize
Description
Returns the size in bytes of a map item from its key value.

Prototype

			     DCTMAPX_ItemSize...
     D                 PR            10I 0
     D@This                            *   Value
     D@Key                             *   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.
Return Values


The size in bytes of the item with the specified key. If the item is not found, the returned size is -1.