db_len_t db_get_field_len ( db_row_t  hrow,
db_fieldno_t  nfield 
)

Obtain the length of a particular field in a row, as appropriate to the field's data type.

Parameters:
hrow Row handle.
nfield Field number.
Returns:
  • Length of field, appropriate to field's data type.
  • DB_LEN_FAIL on failure.
On failure, one of the following error codes is set:
  • DB_EINVAL Caused by: invalid row handle or field number.

See also:
db_get_field_size, db_set_field_len,
get_db_error, clear_db_error, Error Handling


Copyright © 2005-2008 ITTIA®. All rights reserved.