VB CODE COUNTER
------------------------
This mini-app counts the code lines and characters
in each of a VB project's modules, then displays either
the total lines of code or the approximate byte size
for each module and for the project as a whole.

Info on your code size is useful for project planning.
Also, Microsoft suggests the byte size of your module
code (saved as text) closely approximates the module's
memory space usage at run-time, and they recommend that
keeping each module to about 8K will yield the best
performance.

To get an accurate count, we must disregard blank and
comment lines, as well as any comments located at the
line ends. The code in VBCOUNT takes care of doing this.
It's useful also to separate the code lines that you write
in event procedures from the form and control definitions.
As VB creates these automatically when you set a non-default
property value, we probably shouldn't consider them as true
lines of code.

All of VBCOUNT's code is in one form, FRMMAIN.FRM. Also included
is a module called TESTMOD.BAS that you can use to test if it
really works. Add it to the project, then run VBCOUNT against
the new VBCOUNT.MAK project. (Be sure you save the project
first.) As noted in the comments, you should get 14 event
procedure lines and 190 total bytes as the result.

-----------------------------

You are free to use this program and its code as you see fit.
The only restrictions are that it can't be sold, and if it is
redistributed, it should be supplied complete and as is. If you
make modifications, please attach your name to it and not ours.
Thank you for your cooperation.

While there is no charge for VBCOUNT, there is one string
attached. We're interested in the size of VB projects relative
to the time needed to put them together, and we'd appreciate
your input on this. If you have one or more projects where
you've recorded the time involved, we'd like to know:

- how many lines of Form/Control and Procedure code there are.

- how long it took (full-time equivalent hours).

- how many programmers were involved (again full-time
equivalent).

- a few words on what the app is (database front-end, file
management utility, small company accounting system, etc.)


Please send your stats to me at the CIS address below. (Other
comments are welcome also.) Ifyou're interested in the results,
let me know and I'll share them when I get enough response.
Thanks.

-------------------------------
Allan Colby
4/1/94
CIS 71257,760


