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

Click here to load this message in the networking platform