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

How to print a form documentation 1

Status
Not open for further replies.

SitesMasstec

Programmer
Sep 26, 2010
526
Brasil
Hello colleagues!

In a Form I have a lot of controls and each one has some code in its procedure ("GotFocus", "LostFocus", "Valid", etc).

I would like to print the code used in the form at once, without having to cut & past using a text editor. Just for documentation of the code used. Is there a way to get the code printed, for example, in a way like this:
Form1:
(Text box) txtMyName:
GotFocus:
this.Readonly=.F.

LostFocus:
this.Readonly=.T.
this.Forecolor=RGB(255,0,0)

(Text box) txtMyBirthDate:
GotFocus:
this.Readonly=.F.
etc etc

Thanks,
SitesMasstec
 
Hi SiteMasstec,

This is how I would do that:

1. Open the Class Browser (from the Tools menu).

2. Click the Open button.

3. In the File Open dialogue, choose Form as the "Fle of type", then navigate to the form in question.

4. In the left-hand pane, click on the form, then click the "View Class Code" butto (in the Class Browser's toolbar).

5. A window will open containing all the form's code. You can now print the code, or paste into another file.

Give it a try.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Hello Mike!

It was I was searching for many days! Very nice.

Thank you very much,
SitesMasstec


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top