Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record Updating
Message
From
21/02/2002 05:27:15
 
 
To
21/02/2002 01:41:35
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Miscellaneous
Thread ID:
00622984
Message ID:
00623029
Views:
23
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform