OpenDBX/C API/odbx field value

From Linuxnetworks
< OpenDBX‎ | C API
Revision as of 18:54, 1 October 2005 by Nose (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


char* odbx_field_value(
    odbx_result_t* result,
    unsigned long pos )

Description:

Returns the value of the field specified by "pos" in the current row. All values except binary objects are returned as \0 terminated strings. Numbers have to be converted to their binary representation before arithmetic operations are allowed. The value of "pos" must be in the range from 0 to odbx_column_count()-1. A value of NULL is both, a valid field value and the return value in case of an error, but errors only occur if "pos" is outside the valid range or "handle" is invalid.

Parameters:

  • result: Object created by odbx_result()
  • pos: Column number in the current result set

Return values:

  • String value or binary object of the specified field

Errors:

  • None



Back to Overview