Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Begin..End Transaction in RVs
Message
From
11/03/2002 04:26:01
Czarina Joyce Villanueva
Innovision Systems International
Manila, Philippines
 
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00630837
Message ID:
00630841
Views:
20
Thanks for your time Vlad!

I have this code in the save event of my application:
lUpdate = TableUpdate(1,.T.,"MyRvAlias1")
If lUpdate
   lUpdate = TableUpdate(1,.T.,"MyRvAlias2")
Endif
If lUpdate
   lUpdate = TableUpdate(1,.T.,"MyRvAlias3")
Endif
If lUpdate
   End Transaction
Else
   Rollback
   =TableRevert(.T.,"MyRvAlias1")
   =TableRevert(.T.,"MyRvAlias2")
   =TableRevert(.T.,"MyRvAlias3")
Endif
Problem is if MyRvAlias1 commits successfully but MyRvAlias2 does not, the Rollback does not restore the original values of both tables. Am I missing something?

BTW, my database is still pure VFP, but sooner we will upgrade it to SQLServer 2000 that's why we are using RVs and SPTs.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform