General information
Category:
Coding, syntax & commands
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only