Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you get a count of the lines of code
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00257293
Message ID:
00257306
Views:
26
>A client has requested the number of lines of code in one of our systems [I don't know why -- the request was forwarded to me]. Is there an easy way to get this info -- is this number [or something similar] stored somewhere in the project?
>
>Thanks
>Doug

Including lines of code in VCXs, PRGs, SCXs, MNXs, and QPRs? I would suggest writing a small prg to sum all the memlines() in the method fields of all the VCX and SCX files. Then you have Procedure and Command fields in the MNX to sum the memlines() for. I think you can use the Debugger profiler to get line numbers for PRGs. You might be better off appending the PRGs into a dummy dbf and counting the non-blank and non-commented lines. Of course, the line continuations [semi-colons] would slightly inflate this count. So, you could count how many non-commented lines end in a semi-colon to subtract this number off.

You can do a SELECT TYPE, NAME,, HOMEDIR from the PJX file for TYPES of M, K, and V [menus, forms and classes] to get the list of items to count memlines for.

Good luck.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform