Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't Append!
Message
From
19/01/2001 11:53:03
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00465557
Message ID:
00465784
Views:
16
Excuse me, just after sending it realize that the best would be:
=CursorSetProp("Buffering",5,"Customer")
Begin Transaction
Insert into Customer (Fields) values (Values)
if TableUpdate(.T.,.T.,"Customer")
   End Transaction
else
   Rollback
endif
That way you revert the transaction if something fails. Actually, if TableUpdate fails, the correct thing should be to call some routine that tries to determine why and inform about it some way or raise an error to a higher level object/program.

Hope this helps.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform