I have an application built( .EXE) in VFP 9.0.

I would like to put ALL of the code in Classes, forms into a text
file.

Is there an easy way to do that?

TIA
Steve

Re: newbie-A Way to get a text file of all source code? by Rush

Rush
Fri May 09 09:18:05 CDT 2008

shall@uaex.edu wrote:
> I have an application built( .EXE) in VFP 9.0.
>
> I would like to put ALL of the code in Classes, forms into a text
> file.
>
> Is there an easy way to do that?
>
> TIA
> Steve
>
Your basic tool is the Class Browser, which can open forms as well as
class libraries. Use the "View Class Code" button to see all the class
or form code as a .prg file (but don't try running the .prg file, it
will probably fail.)

- Rush

Re: newbie-A Way to get a text file of all source code? by Dan

Dan
Fri May 09 10:54:36 CDT 2008

Rush Strong wrote:
> shall@uaex.edu wrote:
>> I have an application built( .EXE) in VFP 9.0.
>>
>> I would like to put ALL of the code in Classes, forms into a text
>> file.
>>
>> Is there an easy way to do that?
>>
>> TIA
>> Steve
>>
> Your basic tool is the Class Browser, which can open forms as well as
> class libraries. Use the "View Class Code" button to see all the
> class or form code as a .prg file (but don't try running the .prg
> file, it will probably fail.)
>
> - Rush

And to automate it, use the _oBrowser public memory variable. After you DO
(_BROWSER), _obrowser will hold an object reference to it and pretty much
splay open all of its functionality to your code.

Most people haven't read the help file entry on the class browser. There's a
TON of useful stuff in there.

Dan



Re: newbie-A Way to get a text file of all source code? by Paul

Paul
Fri May 09 13:08:27 CDT 2008

If all you have is the exe, you will probably need a tool like ReFox.


<shall@uaex.edu> wrote in message
news:e71479d8-c7f3-4ff2-b4f6-8f12ba60599e@34g2000hsh.googlegroups.com...
>I have an application built( .EXE) in VFP 9.0.
>
> I would like to put ALL of the code in Classes, forms into a text
> file.
>
> Is there an easy way to do that?
>
> TIA
> Steve



Re: newbie-A Way to get a text file of all source code? by MikeA

MikeA
Tue May 13 14:48:04 CDT 2008

He did not clarify as to why he wanted all the source code in one text file.
So, all I can say is for me, I remember a long time ago I wanted that to see
how many lines of code were in my program. I don't know that that is the
reason but if it is just for a count then you can use aDir and open each
table in the *.SCX and VCX and scan the tables and just do a MEMLINES on the
methods field (as well as a few others if you want to count properties as
lines of code also).

Other than knowing how many lines of code your program is, I can't see any
reason why one would want to do that.

Mike



"Paul Pedersen" <nospam@no.spam> wrote in message
news:%235Dpf%23fsIHA.5832@TK2MSFTNGP02.phx.gbl...
> If all you have is the exe, you will probably need a tool like ReFox.
>
>
> <shall@uaex.edu> wrote in message
> news:e71479d8-c7f3-4ff2-b4f6-8f12ba60599e@34g2000hsh.googlegroups.com...
>>I have an application built( .EXE) in VFP 9.0.
>>
>> I would like to put ALL of the code in Classes, forms into a text
>> file.
>>
>> Is there an easy way to do that?
>>
>> TIA
>> Steve
>
>



Re: newbie-A Way to get a text file of all source code? by Dan

Dan
Tue May 13 15:27:35 CDT 2008

Many people new to VFP from previous versions just *need* to see code.

Another valid reason is Source Control which may not work on binaries. (And
nobody has mentioned SCCTEXT.PRG in this thread yet -- that'll generate
"text" from .SCX and .VCX files.)

Dan

MikeA wrote:
> He did not clarify as to why he wanted all the source code in one
> text file. So, all I can say is for me, I remember a long time ago I
> wanted that to see how many lines of code were in my program. I
> don't know that that is the reason but if it is just for a count then
> you can use aDir and open each table in the *.SCX and VCX and scan
> the tables and just do a MEMLINES on the methods field (as well as a
> few others if you want to count properties as lines of code also).
>
> Other than knowing how many lines of code your program is, I can't
> see any reason why one would want to do that.
>
> Mike
>
>
>
> "Paul Pedersen" <nospam@no.spam> wrote in message
> news:%235Dpf%23fsIHA.5832@TK2MSFTNGP02.phx.gbl...
>> If all you have is the exe, you will probably need a tool like ReFox.
>>
>>
>> <shall@uaex.edu> wrote in message
>> news:e71479d8-c7f3-4ff2-b4f6-8f12ba60599e@34g2000hsh.googlegroups.com...
>>> I have an application built( .EXE) in VFP 9.0.
>>>
>>> I would like to put ALL of the code in Classes, forms into a text
>>> file.
>>>
>>> Is there an easy way to do that?
>>>
>>> TIA
>>> Steve



Re: newbie-A Way to get a text file of all source code? by swdev2

swdev2
Wed May 14 10:50:49 CDT 2008

Ya - there's 2 easy ways to do this.

Assuming you have a VFP Project File:

1. use the Documenting Wizard, select new folder for the output files it
generates. ONE of the files is 'The Complete ASCII REPRESENTATION of that
project' . Please note - if it burps whilst you are generating the output
files, you've got a problem in yer project file that you'll need to resolve
. You can see the Documenting Wizard from the IDE.

2. use PDM - see http://leafe.com/dls/vfp or
http://gorila.netlab.cz/pdm.html for the latest. It generates HTML with a
TOC, which I find quite useful.

Good Luck !
Mondo Regards [Bill]
--
===================
William Sanders / EFG VFP / mySql / MS-SQL
www.efgroup.net/vfpwebhosting
www.terrafox.net www.viasqlserver.net

<shall@uaex.edu> wrote in message
news:e71479d8-c7f3-4ff2-b4f6-8f12ba60599e@34g2000hsh.googlegroups.com...
> I have an application built( .EXE) in VFP 9.0.
>
> I would like to put ALL of the code in Classes, forms into a text
> file.
>
> Is there an easy way to do that?
>
> TIA
> Steve