Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to design it in Class?
Message
De
25/05/2001 12:03:31
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
À
25/05/2001 11:41:25
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00511522
Message ID:
00511589
Vues:
17
your code should be

BEGIN TRANSACTION
INSERT INTO TABLE1 VALUES(A)
INSERT INTO TABLE2 VALUES(B)

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

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

IF llOk
END TRANSACTION
ELSE
ROLLBACK
TABLEREVERT(.t., "table1")
TABLEREVERT(.t., "table2")
ENDIF
Alexandre Palma
Senior Application Architect
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform