getTypeNum()

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
Note:
The BOAttrType class defines the numeric attribute-type constants listed in Table 97.

Examples

if (theSpec->getAttribute(i)->getTypeNum() == BOAttrType::STRING)
 {
    ...
 }
 

See also

getTypeName(), isType()

Copyright IBM Corp. 1997, 2004