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 can I see the code behind a form /using SCCTEXT.prg 1

Status
Not open for further replies.

german12

Programmer
Nov 12, 2001
563
DE
I read in

How do I view code behind a form 7
thread184-812643 which was closed in 2004.

I did not understand the suggestion there given by Koen Piller




In order to see what SCCTEXT.prg does
I used both commands the same way - having SCCTEXT.prg and an scx-file in the same directory - but did not see anything.B

May be that I have not yet understand the purpose -I know I can see everything in a form, by clicking into the elements and can see codes and properties of that form.

But it would be fine to have a listing of all code und properties behind a form.
Is it perhaps also possible that now when we have VFP 9 meanwhile, there is another way to do that?

Thank you
Klaus





Peace worldwide - it starts here...
 
Scctext.prg takes an SCX form and outputs a text file intended for source code control (that's what SCC means) as the same file name in the folder of the SCX with the extension SCA.
I don't know if scctext.prg works if you copy it somewhere else. Notice many programs have dependencies of other files, so just CD HOME() and run
scctext("C:\path\to\your.scx") and you will find your.sca within the same path C:\path\to\.

VFP9 has something slightly better with the "view class code" toolbar button of the class browser. It's intended for classes, but also works for SCX forms. First, you use the "open" button pick an SCX, and then click the view class code button and get a PRG file.

The contents of the files generated by SCCTEXT and view class code differ and each has its own purpose. There's also a slightly better version of SCCTEXT in the Thor repository if you install the basic Thor.APP you will have lots of new tools including scctextX.prg

What any of these three tools do not take into account is the code that's in parent classes. So strictly speaking you won't see all code, but surely you have an overview of all code on the level of the SCX form.

Chriss
 
Thanks for your advice, Chriss,
it worked fine, when I left where it is located (in the Home()-directory).

To all here - I wish a happy New Year 2023
2022 should be forgotten.
It is not known whether 2023 will be better than 2022 - in any case it will be better than 2024

Klaus


Peace worldwide - it starts here...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top