Information générale
Catégorie:
Codage, syntaxe et commandes
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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement