getItemType function
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Returns the data type of an item in a MapMessage.
Syntax
|
Applies to
Message objects
Notes
- Possible values include
UNKNOWN,boolean,byte,short,char,int,datetime-tz,long,float,double,string, orlongchar. - It returns
UNKNOWNif the item does not exist. - The
getItemTypefunction cannot precisely determine certain data types. It is important to be aware of the following limitations:- String values — getItemType function returns the
longcharvalue for a data item consisting of a string longer than 32K. If the item is a string of 32K or less, the function returns thestringvalue for bothCHARACTERandLONGCHARdata. In the latter case, it is the responsibility of the ABL programmer to know the order of items in theMapMessageand to call the correct function to interpret the data appropriately. - Date values — getItemType function returns the
datetime-tzvalue for all date items.
- String values — getItemType function returns the
See also
createMapMessage procedure, setBoolean procedure, setByte procedure, setBytesFromRaw procedure, setChar procedure, setDate procedure, setDateTime procedure, setDateTime-TZ procedure, setDouble procedure, setFloat procedure, setInt procedure, setLong procedure, setLongString procedure, setShort procedure, setString procedure, getMapNames function, getItemType function, getBytesToRaw function, getChar function, getDate function, getDateTime function, getDateTime-TZ function, getDecimal function, getInt function, getLogical function, getLongString function, getLongStringCP function
For more information, see the MapMessage.