Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Information regarding the database engine of VFP8
Message
De
04/03/2003 10:42:09
 
 
À
04/03/2003 10:33:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00760786
Message ID:
00760909
Vues:
22
Oopps.. sorri.. that is mistake of using copy/paste :P

the code should be
*---Update/Insert 
BEGIN TRANSACTION
IF llRollBack AND NOT TABLEUPDATE(.T., .F., "Sales")
    llRollBack = .T.
ENDIF

IF llRollBack AND NOT TABLEUPDATE(.T., .F., "SalesDetails")
    llRollBack = .T.
ENDIF

IF llRollBack AND NOT TABLEUPDATE(.T., .F., "Stock")
    llRollBack = .T.
ENDIF

....
IF llRollBack
    AERROR(laError)
    ROLLBACK
    TABLEREVERT(.T., "Sales")
    ....
ELSE
    END TRANSACTION
    FLUSH
ENDIF
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform