Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transactions and Table Buffering
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00093954
Message ID:
00094203
Views:
21
Peter,

No you have the idea of transaction wrong. A transaction is used to group a number of table actions into a single all or none operation. Generally when used with buffering all of the inserting and replacing will have all taken place before the transaction starts. The transaction would be soething like this;
 BEGIN TRANSACTION
 llRollBack = .F.
 IF NOT TableUpdate(0,.f.,"Table1")
    llRollBack = .T.
 ELSE
   IF NOT TableUpdate(0,.f.,"Table2")
      llRollback = .F.
   ELSE
      IF NOT TableUpdate(0, .F., "Table3)
         llRollBack = .T.
      ENDIF
   ENDIF
 ENDIF
 IF llRollBack
    ROLLBACK
 ELSE
    ENDTRANSACTION
 ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform