Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default form method 2

Status
Not open for further replies.

linousa

IS-IT--Management
Mar 8, 2013
79
US
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.


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
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)

Visual FoxPro articles, tips and downloads
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top