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?
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?