Information générale
Catégorie:
Codage, syntaxe et commandes
Can you tell me the exact sequence of event? Like:
- User A press Edit
- User A modify a field
- User B press Edit
- User B modify a field <== You should get an error at this point
Note that if User A save it changes before User B change a field, there will not be an error. Also, the edit button doesn't do anything. Maybe you should try to lock the record yourself in the Edit button.
>I still don’t get it. I have the same record begin edited in two different sessions at the same time. My code is:
>
>Set Exclusive Off
>Set MultiLocks On
>Use Main
>CursorSetProp("Buffering",4)
>
>When I click on the Edit button, I don’t do anything special. I just enable the bound txtBoxes and SetFocus to the first one. I make a change and click update. My update click procedure does:
>llUpdate=TableUpdate(.F.)
>When I click on the second session’s update button, I don’t get any error, it just changes the fields to reflect the new values updated in the first session.
>
>In both sessions then value of llUpdate is .T.
>
>It’s got to be something I’m doing wrong. If anyone can help I’d appreciate it.
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