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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Also new to forms

Status
Not open for further replies.
Jul 7, 2003
95
US
I used the forms wizard (v. 6.0) to generate the basic data entry screen. I know next to nothing about the underlying code it generates(so far). The form is fine except how the find function works when using the form. Its cumbersome requiring boolean when all I want is a box to pop up, fill in string of numbers and find the record in the database. First question is, can I modify what the find button does when I modify myform from the properties popup? Second, what file do I open in text editor to see and modify the code that is generated by the forms wizard? Thanks for any help. I hope to eventually learn forms which seems more complicated than I originally thought it would be.
 
powerprinting

If you you need to change the default behavior to the find button, just edit the click event of the find button, by adding your own code, and this will override this default behavior. But I would suggest you avoid using the wizard, and build a form on your own, since the wizard uses a lot of code that is tied to many function, the changing one line of code might cause problems.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
PowerPrinting,

I agree with Mike Gagnon that you should avoid using the wizards if you don't like what they produce. In general, the form wizard generates good-looking functional forms which are very difficult to modify. The code is buried in several layers of class libraries, and is un-commented and difficult to read.

You will learn VFP faster if you have a crack at creating your own forms.

Mike


Mike Lewis
Edinburgh, Scotland
 
Thanks. That makes sense. There is alot of new code to learn obviously. I have some foxpro books but they don't go much into detail about code and seem to tout the wizards alot. Things like release.myform etc are what I need to how to learn to incorporate into the forms code. Any idea where great examples of forms code are on the internet? Again, thanks for the tips! One other question though... is a Main.prg of some sort always needed to make the forms program work well?
 
Powerprinting,

I know how daunting it can be to find your way round the language. But there are a lot of useful resources available to you.

Check out my own web site (see below for URL). It contains around 30 articles on using VFP, plus links to many other web sites which contain similar material.

Mike


Mike Lewis
Edinburgh, Scotland
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top