in some ways this continues thread1254-839231. go skim that over, then head back to this thread.
the thread above addresses the problem of when to run code from Valid. ive implemented some ideas from there, but i still have some issues to deal with.
my form has 2 buttons (save and discard), a textbox for entering data, and a grid. once data is entered into the textbox, i update the grid (increment the count on the row containing the item in the textbox).
i need focus to return to the textbox after that happens, reason being the users will enter data w/ a barcode scanner, so i dont want them to have to click it each time. but they also need to be able to click the grid and enter in values manually, along with being able to click the buttons. since When and GotFocus fire before Click, i havent been able to find a way to allow the user to do this.
the closest ive gotten is to set a form property when the form is clicked, and check for that in the Grid's When event. but the user has to click twice, once to set the var and then again to select a control.
so, foxpro gurus, have any suggestions?
what we see depends mainly on what we look for.
--John Lubbock
the thread above addresses the problem of when to run code from Valid. ive implemented some ideas from there, but i still have some issues to deal with.
my form has 2 buttons (save and discard), a textbox for entering data, and a grid. once data is entered into the textbox, i update the grid (increment the count on the row containing the item in the textbox).
i need focus to return to the textbox after that happens, reason being the users will enter data w/ a barcode scanner, so i dont want them to have to click it each time. but they also need to be able to click the grid and enter in values manually, along with being able to click the buttons. since When and GotFocus fire before Click, i havent been able to find a way to allow the user to do this.
the closest ive gotten is to set a form property when the form is clicked, and check for that in the Grid's When event. but the user has to click twice, once to set the var and then again to select a control.
so, foxpro gurus, have any suggestions?
what we see depends mainly on what we look for.
--John Lubbock