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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ApplyUpdates problem on 2nd time.

Status
Not open for further replies.

cold25

Programmer
Feb 11, 2002
41
US
Problem is after editing a .dbf table, saving it once, editing it again & then trying to save it a 2nd time, it creates this exception:

"Project Project1.exe raised exception class EDBEngineError with message 'Couldn't perform the edit because another user changed the record.'

All I have done prior to the actions mentioned above is launch the program and open the table. I'm thinking perhaps I need to "free" something immediately after ApplyUpdates is executed, but I don't know what it would be. Might this be the problem or is it something else? Any suggestions?

cold25
 
I don't use the ApplyUpdates method. I tend to go for
Tblobj.edit; //sometimes Tblobj.append
<do some stuff>
Tblobj.fieldbyname('example').asString := .....
Tblobj.post;

As long as you don't set the Table to be caching, you shouldn't have too much in the way of problems. Of course I don't use the BDE, but do use Advantage db server.

Scott S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top