Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tool to count lines of code?
Message
From
14/08/1998 15:00:03
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
11/08/1998 09:32:51
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00125475
Message ID:
00126998
Views:
29
>
>7. all comment lines shouldn´t be counted either. Count CRLF+"*", CRLF+"&&", and CRLF+"NOTE", and subtract that number too. (This works because of steps (2) and (5) above.)
>
>This should be a good approximation!

Comments _should_ be counted, though separately. You should insert one CRLF before the beginning of any source file, just in case the first line is a comment.

Of course, this shouldn't be done on live files - append them into a memo of a discardable cursor and manipulate there (or in VFP6, just FileToStr).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform