Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update conflicts
Message
From
20/07/2001 16:15:44
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
20/07/2001 16:10:45
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00533337
Message ID:
00533339
Views:
10
>VFP 6.0
>
>CURSORSETPROP("Buffering",3,0)
>
>As the above is what I am using in the main.prg, that's it. Now, we caught a problem (that I didn't think of). What to do when two (or more) user have the same from open and both are in edit mode, then both of users saves it...
>
>If I remember correctly, in FPW 2.6, I had to do somewhat a little coding on that to see if the data was changed, but that was in 2.6 days. What am I overlooking at this point? The error message is what the title says.
>
>Chuck

This is precisely the error checking that VFP does when you use optimistic buffering.

If TableUpdate() fails for the second user, the program should issue TableRevert(), refresh the form, and the user should start editing again.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform