Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to design it in Class?
Message
From
25/05/2001 12:03:31
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
To
25/05/2001 11:41:25
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00511522
Message ID:
00511589
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform