Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Buffering vs Begin..End Transaction
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00305569
Message ID:
00353766
Views:
30
>Nadya,
>
>Process the array laDe to remove the non-buffered alias' first (instead of checking the buffering mode inside the transaction. Then you code would be something like this;
>
>
>* lsDe() already exists
>LOCAL llRollBack
>llRollBack = .F.
>BEGIN TRANSACTION
>FOR x = 1 TO ALEN(laDe,1)
>   IF NOT TableUpdate(1,.F.,laDe(x,#))
>      llRollBack = .T.
>      EXIT
>   ENDIF
>ENDFOR
>IF llRollBack
>   ROLLBACK
>ELSE
>   END TRANSACTION
>ENDIF
>
Great, Jim. Thank you very much.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform