|
-
April 8th, 1999, 10:13 AM
#1
Printing Code - Lines Count
Is there an easy to find out the total number of Source Lines of Code in a project.
Thanks
-
April 8th, 1999, 10:27 AM
#2
Re: Printing Code - Lines Count
you could write an Add-in that iterates over all CodeModule Objects of your project and adds the CountOfLines property of all those modules.
sample:
Dim p As VBComponent
Dim lCount As Long
For Each p In gVBInstance.VBProjects.StartProject.VBComponents
lCount = lCount + p.CodeModule.CountOfLines
Next p
msgBox "Total: " & lCount
the disadvantage: blank lines are counted as source lines and in multline statements (_) all lines are counted.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|