Skip to content

GET_ATTR_TYPE

GET_ATTR_TYPE returns the type of an attribute. The id of the attribute is passed in the argument attrid.

Syntax

leo-grammar
CC "Core" GET_ATTR_TYPE	attrid:idValue.


#-->RESULT ecode:intValue attrtype:strValue
CC "Core" GET_ATTR_TYPE	attrid:idValue.


#-->RESULT ecode:intValue attrtype:strValue

Parameters

  • attrid (idValue) -

Returns

  • ecode (intValue) - Contains the error code or is 0 in case of success.
  • attrtype (strValue) -

Details

The return variable attrtype is set to the name of the attribute type.
Possible values are:

Name Type
INTEGER Integer
DOUBLE Floating point number
STRING Short string (max. 3,700 chars)
DISTRIBUTION (actually not used)
TIME Time
ENUMERATION Enumeration
ENUMERATIONLIST Enumeration list
LONGSTRING Long string (max. 32,000 chars)
PROGRAMCALL Program call
INTERREF Inter-model reference
EXPRESSION Expression
RECORD Record table
ATTRPROFREF Attribute profile reference
DATE Date
DATETIME Date and time
CLOB Character Large OBject
(has nothing to do with a famous BVB 09 coach)

See Also

Examples

Versions and Changes

Available since ADOxx 1.3