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

Viewing code 1

Status
Not open for further replies.

DanNorris2000

Technical User
Nov 10, 2000
186
US
Is there a better way to view code other than to click on every procedure to see what is behind it? Can I view all code on a screen ?
 
Dan,
It depends on what you want to do with what you are looking at. First in the code window, pressing PgDn (or PgUp) will 'page' you through all the method/event code. If there is more than one screen full in a single method you'll need to make multiple presses. If you need to search for some code, when you bring up the find dialog (Ctrl+F), make sure you select "All Objects". In all these cases you can of course edit "as you go".

On the other hand, if you just want to look at (or print off) all the method code (plus), you can use the class browser (under the Tools menu) to open the form - it does these as well as classes. Then click on the "View Class Code" button on the toolbar.

Last if you want to "automate" the process, and you don't mind having some extra stuff, try using the SCCTEXT.PRG -this creates a text file that Visual SourceSafe (and other source control programs) use in versioning comparisons. e.g.
DO (home()+"scctext.prg") with "myform.scx"
It'll produce an .SCA text file with all the method code and more.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top