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

Documenting a Form 2

Status
Not open for further replies.

SitesMasstec

Technical User
Sep 26, 2010
501
BR
Hello colleagues!

I have a form with some text fields (with code in Init, GotFocus, LostFocus, etc) and buttons (with methods).
I would like to print the content of each Event and Method in order to have a documentation of the form.
For example:

Object: (button) btnExecutar, Procedure: Click
Code:
ExecutaOuCancela="Executa"
* Primeira Data de Vencto.     
XQualPriData=thisform.QualPriData.Value
* Ultima  Data de Vencto. 
...

Is it possible in VFP 9?


Thank you,
SitesMasstec
 
Another option:

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

2. Open the form in question (from the Class Browser's toolbar).

3. Click the "View Class Code" button in the Class Browser's toolbar. This will open an edit window showing all the code.

4. Print the contents of the edit window.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
If you only need the code that's in the one form, Mike Lewis's answer (use the Class Browser) is the way to go. If you also want to see all the inherited code for everything on the form, you can use a tool that comes with the Thor Tool Manager*. On the Thor Tools menu, it's Reports | Code Listing | This Control and Children | All Code and Inherited Code. Just make sure the form has focus when you run. It takes a bit of time to run, but opens a text window with all the code at all levels.

* Thor is a community-built and community-supported add-on for VFP. It's one of the dozens of tools that are part of VFPX (vfpx.org). You can get Thor at and there's good documentation there, too.

Tamar
 
Thor is a community-built and community-supported add-on for VFP .... You can get Thor at and there's good documentation there, too.

There's also good documentation among Tamar's own conference papers:

Make Thor Your Own

Try Thor's Terrific Tools

There's a lot more to Thor than its documentation tools. Definitely worth a look if you aren't already familiar with it.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Hello colleagues!

Mike Lewis presented option fulfilled my needs, thank you.

As about Thor, presented by Tamar: I went to GitHub and as I am not familiar on how to use it, maybe later I will go back to it.

I will also take a look at Tamar's paper ("Make Thor Your Own").


Thank you,
SitesMasstec
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top