Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Have someone update my record before of me ?
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00132381
Message ID:
00132389
Views:
15
You do this exactly the same way you did with VFP data. Use TABLEUPDATE(). If it returns .F. you can use OLDVAL() and CURVAL() to test your view against what's in the server table. Make sure you don't use KEY FIELDS ONLY as the where clause type in your view. If you do, VFP will never detect a conflict.

>hi to all,
>
>how can I check update conflit on a client/server app ?
>
>to explain:
>- for update conflit I mean when the users A and B load the same record, does some modifies, then A save modifies, now if B save there is a update conflit
>- in a normal VFP app, before to do the TableUpdate() I check the update conflit testing OLDVAL(myfield, mytable) and CURVAL(myfield, mytable), how can I do this on a C/S app ? I don't want to lock a record when I load it.
>
>TIA
>Renato
Previous
Reply
Map
View

Click here to load this message in the networking platform