Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need guidance on transactions
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00659716
Message ID:
00659774
Views:
23
This message has been marked as a message which has helped to the initial question of the thread.
I always do something like this
ll_OK = TableUpdate(.T., .F., <Alias1>)
ll_OK = iif(ll_OK, TableUpdate(.T., .F., <Alias2>), ll_OK)
ll_OK = iif(ll_OK, TableUpdate(.T., .F., <Alias3>), ll_OK)
...

if ll_OK
  END TRANSACTION
  wait window "Yup!"
else
  ROLLBACK
  =TableRevert(.T., <Alias1>)
  =TableRevert(.T., <Alias2>)
  ...
  wait window "NOPE!"
endif

but the effect is exactly the same just with a little
less "depth" and writing
Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

Frank.Dietrich@dd-tech.de
DFPUG # 327
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform