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

Printing All The Source Code In A Project

Status
Not open for further replies.

Shanachie

Programmer
Jun 18, 2000
92
US
It would be helpful to me if I could print the entire source code for the main program, all of the forms and their objects and all of their methods.

I can't be the first one to want to do this.

How?


TIA,
Shanachie
 
I've never tried it, but theoretically you could write a .PRG file that would do this. Open up the project file as a table (USE myproj.pjx) and iterate through it, opening each file and processing it depending on its type.

The only real problem I can see is how you would print a visual representation of forms and reports. If that's not important, the methods and properties of all the controls in a form can be pulled out of the memo fields in the form.scx table.

I don't know if anyone has done something like this before, but it seems to me it would be fairly easy to do.
 
Try the Documenting Wizard (Tools->Wizards->Documenting or All->Documenting if it isn't listed). You can get a source code report from there.

Dan
Dan Walter
DWalter@zoo.uvm.edu
 
HI
See the link where I had posted the reply on how to get the form as a prg. Also, the entire project can be obtained as a programme code.. but in .lst file rather than .prg file using the Documentation wizard. That is quite an easy way.

Limitations are there and Rick also added him comments on that link...

It is posible I convert Foms into PRG form?
thread184-170512

I remeber to have seen somethin related to this in Universal Thread .. as how we can get the whole as a word document, If I am not mistaken.. but that one I havent tried so far.

:)

ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Thanks, guys!

The Tools->Wizards->Documenting solution did what I wanted, although the resulting file was 366 pages long.

Be careful what you wish for; you just might get it.

Thanks,
Shanachie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top