Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update conflicts
Message
De
20/07/2001 16:15:44
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
20/07/2001 16:10:45
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00533337
Message ID:
00533339
Vues:
11
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform