Product Documentation

FairCom ODK Driver

Previous Topic

Next Topic

RecordUpdate

Modifies the value of an existing record in the database. It does not modify the Primary Key.

void FCODKDriver::RecordUpdate(const char *tableName, const char *pk, unsigned long valueLen, void *valueBuffer)

Parameters:

  • IO Channel Number - See RecordRead.
  • tableName [IN] - Table Name. See TableCreate.
  • pk [IN] - Primary Key. See RecordRead.
  • valueLen [IN] - Record Value. Value length populated in the provided buffer. See RecordInsert.
  • valueBuffer [IN] - Record Length. Value buffer populated with the record data. See RecordRead.

Result Values: N/A

Expected Errors:

  • Primary Key does not match an existing record in the table.
  • A record cannot be updated when the Primary Key Value does not match any record in the database.

When an Error Occurs

  • Driver does not update the value of a record.

TOCIndex