Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement