Contents Index First method GetColumnCount method pdf/preface.pdf

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

Get method


Prototype 

bool  Get( ul_column_num colnum,
value-declaration,
bool* isNull = UL_NULL)

value-declaration:  
ul_char * ptr, ul_length length
| p_ul_binary name , ul_length length
| DECL_DATETIME &date-value
| { DECL_BIGINT | DECL_UNSIGNED_BIGINT } &bigint-value
| [ unsigned ]  long &integer-value
| unsigned char &char-value
| double & double-value
| float & float-value
| [ unsigned ]  short &short-value

Description 

Gets a value from the specified column.

colnum    A 2-byte integer. The first column is column 1.

value declaration    The arguments required to specify the value depend on the data type. Character and binary data must be mapped into buffers, with the buffer name and length specified in the call. For other data types, a pointer to a variable of the proper type is needed. For character data, the length parameter specifies the length of the C array including the space used for the terminator.

isNULL    If a value in a column is NULL, isNull is set to true. In this case, the value argument is not meaningful.

Returns 

true (1) if successful.

false (0) if unsuccessful.

See also 

Get generated method

Set method


Contents Index First method GetColumnCount method pdf/preface.pdf