Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record Updating
Message
 
 
À
21/02/2002 01:41:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Divers
Thread ID:
00622984
Message ID:
00623029
Vues:
22
Hi!

tableupdate() has a parameter - when it is .F., data will not be saved when there are changes by another user (tableupdate() will return .F. in such case). You can even determine what data are changed: Use refresh() for current record in view to get the latest values from the server. Then loop through fields and compare oldval() with curval().

HTH.

>Hi,
>
>I wrote a program using odbc and remote views to connect to a database. The program has an unlimited number of users(multi user environment.) How can I prevent data inconsistency. On my findings, a user can update a record while another user is processing the same record. In this case, the 2nd user might have finished calculating the record before the other had updated it. Any suggestions, recommendations on how to minimize if not eliminate this problem?
>
>
>Thanks in Advance
>Mike Zapanta
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform