Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiuser Misery
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00533710
Message ID:
00534033
Vues:
14
Frank:

Your workaround does the trick. Thank you.

Nancy had suggested that I try optimistic buffering instead. I thank her for the suggestion, but in this case, where there will be only two or three users located in close proximity to each other (we are not too concerned about 'lunch lock'), we don't want two people updating the same record at the same time and time will be wasted by making a user wait until an update is attempted before finding out that someone else worked on the record, I think pessimistic buffering is more appropriate. Once it got working, it is certainly easier to implement.

I have one more question. Do I have to be concerned with two users adding records at the same time? The Programmer's Guide says that if two users APPEND BLANK simultaneously, it will cause an error since the file is locked during an APPEND BLANK. I ran two instances of my application, clicked on the "Add" button which essentially appends a blank record to the buffered table without saving it and then did the same thing in the other instance. I was then able to "Save" both records to the file without conflict.

Jay
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform