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!

Trouble Documenting Code in Form Events. 3

Status
Not open for further replies.

ibanezGuitars

Programmer
Jul 8, 2004
22
US
Hello,

Although I've used FoxPro on and off since the first multi-user version first came out, It's been years since I've worked using VFP7 except for some basic maintenance and reports as needed. I could really use a little advice on documenting an old system which was originally developed by another worker who has long since retired.

I've got all of the documentation finished for the databases, the individual coded programs and the general system design. I still need to print out the actual code behind the forms for all of the Objects and their Events.

I've been thorugh the Documentation Wizard, the MDSN Help, and several searches for posts looking for tips on how to do what seems to be a simple task but to no avail.

Anyone out there that has some advice on how to print out the code contained behind these forms or that could refer me to some information on how to do so?

I'd appreciate any suggestions you may have.

Thanks For Your Time,

Dave
 
Hi Dave,

The easiest way to print the code in the forms and classes is to use the Class Browser. Fire it up from the Tools menu. Open either a form, or a class library, or an entire project.

Then click the View Class Code button. This will give you all the source code, in one easy-to-view window. You can then either print the code, coopy it to the clipboard, or save it as a text file.

Good luck with the project. I know how daunting it can be to try to understand someone else's programs.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Dave,
A Class is nothing more then a Renamed DBF with a ton of Memo fields. If you want anything else to print out that the class browser does not print, do the following:

Use Yourclass.vcx (if your reports are set to include alias add a alias to the use statement that will be common for all your classes)
Modi report sysclasses
Create the report the way yout to see it
Print the report
USE

The forms/screens are the same as the classes. Same basic structure. You again can create your own report.
Use Yourform.SCX (same as above)
modi Report SysForm
(same as above)

Adding Caution you may want to
use YourClass
copy to SysClass
use SysClass
index on somefield
set order to somefield
press on with above report create operation.


David W. Grewe Dave
 
In addition to what the others have said, there is a FREE documentation utility for FoxPro, written in FoxPro:


This is freeware and is distributed with source code so you can easily modify it to do whatever you want.

----
Andy Kramek
Visual FoxPro MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top