db_fget
Previous Topic  Next Topic 

Synopsis:

       value=db_fget(rec_handle,fieldnr/name[,pad])


Arguments:

       rec_handle - The record handle        

       fieldnr/name - The field number or field name

       [pad] - Flag to specify whether returned value should be padded with spaces to the full field width        


Description:    This function returns a field value from a record that has been copied to an internal record buffer by db_get() or db_append().      Either the field number (counted from 0) or the field name can be specified.     If a non-zero value for pad is given then the returned value will be padded with spaces up to the full width of the field even if the contents of the field are less than this width.



Returns:   Returns the value of the field or a negative error code.