General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
You're welcome...from this humble foxpro programmer from New Mexico, US :)
That seems to follow. My code example was how I'd approach the original bit of code you posted.
The general point is that you only END TRANSACTION if the transaction can be successfully (if the tables are updated). Otherwise, you ROLLBACK the transaction. Then you're left with the problem of what to do with the data in the buffers.
>thanks for helping this humble foxpro programmer from holland,
>
>so the routine woult then be
>
>if !succes
>rollback
>for each atables in thisform.atables
>tablerevert(.t.,atables)
>endfor
>
>david
>
>ps thanks for helping me out
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only