Information générale
Catégorie:
Codage, syntaxe et commandes
In VFP 5.0 I am trying to accomplish what seems like a simple process: Whenever the user is in add mode and exits the right-most column in the grid, I want to invoke the Save button (THISFORM.cmdSave.Click()). This will validate and save the record and, since we are in add mode, invoke the cmdAdd.Click method. However, placing the code to make this happen in the textbox's LostFocus event causes a RECORD IS IN USE BY ANOTHER error message (using optimistic table buffering). If I go ahead and lose focus (switching back to the left-most column) and then manually click the Save button, everything works fine. Why?????
TIA--this has been driving me batty . . . .
John
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