Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BDE error

Status
Not open for further replies.

espltd

Programmer
Apr 6, 2005
233
US
Hi, I am using Builder 6 C++ and have set up a dbase alias with BDE, get the following error when I try to post a record change. I am using the TTable Class.
Couldn't perform the edit because another user changed the record. The ID column is a primary key and other columns are text. I am able to append ok, just can not edit.
#include <DBTables.hpp>
DBTable = new TTable(0); //create new table object
DBTable->SetKey();//works
DBTable->FieldByName("ID")->AsString = "3";//works
DBTable->GotoKey();//works
S=DBTable->FieldByName("AircftType")->AsString;//works
DBTable->Edit();//
DBTable->FieldByName("AircftType")->AsString= "F33";
DBTable->Post();//examples show it with append,
Just wondering if anyone knows the problem?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top