Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View values
Message
From
18/01/2002 12:09:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00606715
Message ID:
00606836
Views:
28
>>Caroline,
>>With a brute force update last saving user would be the winner and his/her record would be saved. With conflict managing you could test and prompt the user that there is a change (curval). There are ready class and code for it. I don't remember the location and names now. On MSDN help check section about views. Idea is to try an update (not forcing overwrite the changes) and if fails traverse the fields with oldval(), curval() comparison.
>>Cetin
>
>Cetin,
>
>That is what I have been trying to do however if you are using a view (buffered) then CurVal doesn't return the disk value ie value changed by another user!
>
>So a comparison is not possible!
>
>Thanks for any assistance.

Yes views are buffered but why ? curval() returns on disk value. You could test that with an SQL select which always returns on disk values.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform