Difference between revisions of "OpenDBX/C API/odbx field value"

From Linuxnetworks
< OpenDBX‎ | C API
Jump to: navigation, search
(Parameters:)
(Return values:)
Line 16: Line 16:
 
= Return values: =
 
= Return values: =
  
* Address of a string or binary object for the specified field. Is NULL if the field is a NULL value or pos is out of range.
+
* Address of a string or binary object for the specified field
 +
* NULL if the field is a NULL value, "result" is invalid or "pos" is out of range.
  
 
= Errors: =
 
= Errors: =

Revision as of 16:24, 5 June 2006


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

Description:

Returns the field value specified by "pos" of the current row. The value of "pos" must be in the range from 0 to odbx_column_count()-1. All values except binary objects are strings terminated by \0 but NULL is also a valid field value. Numbers have to be converted to their binary representation before arithmetic operations are allowed.

Parameters:

  • result: Pointer to object created by odbx_result()
  • pos: Column number in the current result set

Return values:

  • Address of a string or binary object for the specified field
  • NULL if the field is a NULL value, "result" is invalid or "pos" is out of range.

Errors:

  • None



Back to Overview