Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update multiple tables
Message
From
28/01/1999 18:17:12
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00180719
Message ID:
00181591
Views:
14
>Bernard,
>
>Use a transaction as in;
>
>
>LOCAL llRollBack
>BEGIN TRANSACTION
>
>  IF TableUpdate(2,.F.,"FirstTable")
>      IF TableUpdate(2,.F.,"SecondTable")
>         IF TableUpdate(2,.F.,"ThirdTable")
>         ELSE
>            llRollBack = .T.
>         ENDIF
>      ELSE
>         llRollBack = .T.
>      ENDIF
>   ELSE
>     llRollBack = .T.
>   ENDIF
>
>   IF llRollBack
>      ROLLBACK
>      TableRevert(.T.,"FirstTable")
>      TableRevert(.T.,"SecondTable")
>      TableRevert(.T.,"ThirdTable")
>   ELSE
>      END TRANSACTION
>   ENDIF
>
Jim
Thank you for your help. Most useful.

Just one more..

Can you guide me to some computer based/ CDROM based tutorials/courses in VFP5/6.

We are in Australia and so cannot attend those in the USA. The courses should be for beginner/intermediate/expert levels. I need this for my colleagues who will be taking up VFP.

Thanks

Bernard

My company email is..
bbout@informedsources.com.au
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform