Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Failed DELETE
Message
 
To
07/09/1998 11:56:56
Richard Hackett
Dr Dick's Software Inc
Edmonton, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00133705
Message ID:
00133846
Views:
16
Dick,

I'm a bit confused. If you use a transaction and you have deleted a record in the parent, a tableupdate will succeed if noone else has altered the record and fail if anyone else has altered the record. If the tableupdate fails you ROLLBACK and Tabelrevert(), if it succeeds you let the RI triggers do the cascading delete, if that fails the tableupdate fails. If the tableupdate fails you ROLLBACK. Once you have succeeded on the tableupdate of the parent, no one else can get a transaction started until you either rollback or end transaction.

You don't need to worry about what other user's have done until a tableupdate fails and you want to attempt to recover from the failure. Getfldstate() is supposed to tell you about the current buffer's condition, not the disk file.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform