Hi,
Here's how my app is currently set up:
It is run with root.prg which sets up some variables and the default directory, etc. Then a form is run with DO FORM MAIN.SCX and things are set in motion with READ EVENTS. If you click the Search button on the MAIN form, it is RELEASEd and the search form is run with DO FORM SEARCH.SCX.
In the Activate event I have:
PUSH KEY CLEAR
ON KEY LABE F1 SEARCH.NAM.SETFOCUS
In other words, I want the F1 key to jump to the NAM field on the form. This works fine if I run the form alone, but when it's called by MAIN, I get an error saying that there's no object named SEARCH. Sure enough, when I look in the debugger, there is no such object. What am I doing wrong?
All help appreciated,
Rob
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