Retrieves the numeric type code for the data type of the current attribute.
Syntax
int getTypeNum();
Parameters
None.
Return values
The numeric type code for the data type of the attribute. Compare this integer value with the attribute-type constants shown in Table 97 to determine the type.
Table 97. Numeric attribute-type constants
Attribute data type | Numeric attribute-type constant |
---|---|
Boolean | BOOLEAN |
Date | DATE |
Double | DOUBLE |
Float | FLOAT |
Integer | INTEGER |
Long text | LONGTEXT |
Object | OBJECT |
String | STRING |
Examples
if (theSpec->getAttribute(i)->getTypeNum() == BOAttrType::STRING) { ... }
See also