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

Counting lines of code in a project

Status
Not open for further replies.

Bryan - Gendev

Programmer
Jan 9, 2011
408
AU
In the IDE I can choose to recompile all programs - so can I access the number of lines of code involved?

Thanks

GenDev
 
The build will go through all project items and compile them, it won't count lines when doing it, no.

Chriss
 
To recompile all code (forms, classes, PRGs, etc.) in a project, tick "Rebuild project" and "Recompile all files" in the Build Options.

However, that won't give you a count of the lines of code. To do that, run the Documenting Wizard (from the Tools menu), and choose "Source code listing" as the output. That will put all the code in a single file. You can then open the file within VFP, go to the last line, and read the line number from the status bar. (Make sure you have SET STATUS BAR ON.)

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top