Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Save problems
Message
From
18/08/2003 13:43:52
 
 
To
18/08/2003 13:19:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00821090
Message ID:
00821100
Views:
16
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
Map
View

Click here to load this message in the networking platform