Next Topic

Previous Topic

Book Contents

GetColType

int GetColType(int iIndex)

Return values

Returns an integer representing the type of data the column contains.

Parameters

  • iIndex - A 1 based column index.

Remarks

The GetCol() function always return the data as an string, the GetColType function can be used to determine the type of the column that conversion of the string can be done after extraction. The following types exists:

  • TYPE_BOOL - Boolean value
  • TYPE_NUMERIC - Numeric
  • TYPE_SHORT - Short
  • TYPE_LONG - Long
  • TYPE_DOUBLE - Double (real)
  • TYPE_DATETIME - Data/time
  • TYPE_STRING - String
  • TYPE_UNKNOWN - Unknown field type / not supported
  • TYPE_BYTES - Bytes
  • TYPE_LONG_BINARY - Long binary
  • TYPE_LONG_CHAR - Long char
  • TYPE_BLOB - Binary object
  • TYPE_DBMS_SPECIFIC - Client specific data (no conversion)