General information
Category:
Coding, syntax & commands
They could be failing for any number of reasons, but if your tables are in a dbc, then using Begin Transaction, End Transaction, Rollback for this type of thing is a good way to make sure everything happens, or nothing happens.
Alan
>Can somebody tell me, why in the next piece of code, sometimes fail step1 or step2 or step3???
>
>Set reprocess to automatic
>** step 1
>select x1
>if flock()
> append blank && sometimes fail
> replace xxxxx
> tableupdate(.t.)
>endif
>** step 2
>select x2
>if rlock()
> replace xxxx && sometimes fail
> tableupdate(.t.)
>endif
>** step3
>select x3
>if rlock()
> replace xxxx && sometimes fail
> tableupdate(.t.)
>endif
>
>I need the three files updated at the same time.
Previous
Next
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