Contents Index GetColumnSize method GetColumnSQLType method pdf/preface.pdf

UltraLite User's Guide
  C++ API Reference
    ULCursor class

GetColumnType method


Prototype 

int  GetColumnType( ul_column_num column-index )

Description 

Returns the data type needed to hold the information in the specified column.

Parameters 

column-index    The number of the column. The first column in the table or result set has a value of one.

Returns 

The column type is a member of the UltraLite data types enumeration. For more information, see Data types enumeration:

Example 

The following example gets the column type for the third column in the table tb:

tb.Open( &conn );
colType = tb.GetColumnType( 3 );
See also 

Data types enumeration

Get generated method

GetColumnSQLType method


Contents Index GetColumnSize method GetColumnSQLType method pdf/preface.pdf