Field Methods
Chapter Updated 2/1/99
| Method | Description |
|---|---|
| xbLong cnt FieldCount() | Returns the number of fields in the file |
| xbDouble d GetDoubleField(char * FieldName) | Returns a xbDouble field for field name |
| xbDouble d GetDoubleField(xbShort FieldNo) | Returns a xbDouble field for field number |
| xbShort rc GetField(xbShort,char *buf) | Gets field data from the record buffer |
| xbShort d GetFieldDecimal(xbShort FieldNo) | Gets field decimal count |
| xbShort len GetFieldLen(xbShort FieldNo) | Returns the length of a given field |
| char * name GetFieldName(xbShort FieldNo) | Returns field name for field number |
| xbShort FieldNo GetFieldNo(char * FieldName) | Returns the field ID number for a given field |
| char type GetFieldType(xbShort FieldNo) | Returns the type of a given field |
| xbFloat f GetFloatField(char * FieldName) | Returns a float field for field name |
| xbFloat f GetFloatField(xbShort FieldNo) | Returns a float field for field number |
| xbShort l GetLogicalField(xbShort FieldNo) | Returns logical field data |
| xbShort l GetLogicalField(char * FieldName) | Returns logical field data |
| xbLong l GetLongField(char * FieldName) | Returns a long field for field name |
| xbLong l GetLongField(xbShort FieldNo) | Returns a long field for field number |
| xbShort rc GetMemoField(xbShort FieldNo, xbLong len,char * buf) | Get memo field data |
| xbLong len GetMemoFieldLen(xbShort FieldNo) | Get memo field data length |
| xbShort s MemoFieldsPresent() | Determine if memo fields exist in DBF file |
| xbShort s MemoFieldExists(xbShort FieldNo) | Determine if a particular memo field has data |
| xbShort rc PutDoubleField(char * FieldName, xbDouble d) | Updates a xbDouble field for field name |
| xbShort rc PutDoubleField(xbShort FieldNo, xbDouble d) | Updates a xbDouble field for field number |
| xbShort rc PutField(xbShort FieldNo,char * val) | Fills or overlays a field in the current record buffer |
| Method | Description |
|---|---|
| xbShort rc PutFloatField(char * FieldName, xbFloat f) | Updates a float field for field name |
| xbShort rc PutFloatField(xbShort FieldNo, xbFloat f) | Updates a float field for field number |
| xbShort rc PutLongField(char * FieldName, xbLong l) | Updates a long field for field name |
| xbShort rc PutLongField(xbShort FieldNo, xbLong l) | Updates a long field for field number |
| xbShort rc UpdateMemoData(xbShort FieldNo, xbLong len,char * buf, xbShort LockOpt) | Update memo field data |
| xbShort l ValidLogicalData( char * buf ) | Check for valid logical data |
| xbShort l ValidNumericData( char * buf ) | Check for valid numeric data |
| Return Code | Description |
|---|---|
| -1 | Field not found in record |
| 0 through n | The field number for field FieldName |
| Return Code | Description |
|---|---|
| XB_INVALID_FIELDNO | An invalid field number was used |
| XB_NOT_MEMO_FIELD | Not a memo field |
| XB_NO_MEMO_DATA | No memo data exists |
| XB_INVALID_BLOCK_NO | Internal error, notify tech support |
| XB_SEEK_ERROR | Disk Error |
| XB_READ_ERROR | Disk Error |
| XB_NO_ERROR | No Error |
| Return Code | Description |
|---|---|
| 0 | Data file does not have any memo fields |
| 1 | Data file has memo fields |
| Return Code | Description |
|---|---|
| 0 | Data file does not have any memo fields |
| 1 | Data file has memo fields |
| Return Code | Description |
|---|---|
| XB_INVALID_FIELDNO | An invalid field number was used |
| XB_INVALID_DATA | Attempt to load invalid numeric or logical data |
| Return Code | Description |
|---|---|
| XB_INVALID_FIELDNO | An invalid field number was used |
| XB_INVALID_DATA | Attempt to load invalid numeric or logical data |
| Return Code | Description |
|---|---|
| XB_INVALID_FIELDNO | An invalid field number was used |
| XB_INVALID_DATA | Attempt to load invalid numeric or logical data |
| Return Code | Description |
|---|---|
| XB_INVALID_FIELDNO | An invalid field number was used |
| XB_INVALID_DATA | Attempt to load invalid numeric or logical data |
| Return Code | Description |
|---|---|
| XB_INVALID_FIELDNO | An invalid field number was used |
| XB_INVALID_DATA | Attempt to load invalid numeric or logical data |
| Return Code | Description |
|---|---|
| XB_LOCK_FAILED | Lock Failed |
| XB_INVALID_BLOCK_NO | Internal error, notify tech support |
| XB_SEEK_ERROR | Disk Error |
| XB_READ_ERROR | Disk Error |
| XB_WRITE_ERROR | Disk Error |
| XB_NO_ERROR | No Error |
| Return Code | Description |
|---|---|
| 1 | Valid logical data |
| 0 | Invalid logical data |
| Return Code | Description |
|---|---|
| 1 | Valid numeric data |
| 0 | Invalid numeric data |
