The question, probably, is not that hard as it sounds, but it is for me! =) So, when you double click on the back of your form, you get in you default method, my question- how do you change this to go to a different one?
Really appreciate your help!
Are you saying you want every time you double-click on your form to go to a particular method?
About all you can do is delete foxuser.dbf and let it recreated. Then change whichever method you want, save it, then close the form.
With any luck, it will do like you want. But probably not for long.
I've been asked this question several times. There's no direct answer.
My own approach is as follows. Most of the time when I'm working on a form, I edit a particular method, then run a test. Usually, I would then want to go to that same method to do further edits. In that case, I refrain from explicitly closing the method's window when I have finished with the edits. I just DO the application from the command prompt. Next time I open the form, the method in question will automatically open.
But at other times that's not what I want. In those cases, I use the Document View window to select the method I want. I keep the Document View window open the whole time, docked to the Command window (and also the Properties window and the Data Session window). That way, the required method is never more than a couple of clicks away.
Or, to answer your question in another way: don't worry about it. It's easy enough to move from one method to another without resorting to tricky techniques or hacks.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
In my case, I select (open) the desired method to edit, and close the form with ESC, not with CTRL+W.
If needed, before ESC I press CTRL+S to save the changes.
There is a programmatic way, too. From the command prompt, type MODIFY FORM MyForm METHOD DesiredMethodName (check the help for MODIFY FORM)
Respectfully,
Vilhelm-Ion Praisach
Resita, Romania
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.