Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transactions and Table Buffering
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00093954
Message ID:
00094203
Vues:
22
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform