Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to design it in Class?
Message
De
25/05/2001 11:41:25
 
 
À
25/05/2001 11:36:31
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00511522
Message ID:
00511577
Vues:
19
Hi
thank you for sample.
Where should I call TABLEREVERT() for both after ROLLBACK ?
Will VFP confuse with BEGIN TRSANCTION If code like this?
I did code
BEGIN TRANSACTION
INSERT INTO TABLE1 VALUES(A)
INSERT INTO TABLE2 VALUES(B)

IF NOT TABLEUPDATE(1,1,"TABLE1")
llOk = .F.
ENDIF

IF NOT TABLEUPDATE(1,1,"TABLE2")
llOk = .F.
ENDIF

IF llOk
END TRANSACTION
ELSE
ROLLBACK
ENDIF

But VFP failed to ROLLBACK

Any ideas/
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform