Results 1 to 3 of 3
  1. #1
    allenme
    Guest

    NCSL (non-commentary source lines) (VB6)

    Greetings!

    Does anyone know of a utility to count the NCSL of VB code modules?

    Thanks,
    Michael

  2. #2
    Rob Bruce
    Guest

    Re: NCSL (non-commentary source lines) (VB6)

    What's your definition of an NCSL? Are you including empty lines (I wouldn't)? Option statements (I would)?

    Even if such a utility doesn't exist, I suspect it would be trivial to create one. You just need to loop through all of the lines in the VBIDE CodeModule object checking for a comment character (don't forget that the Rem keyword is still legal, too).

  3. #3
    allenme
    Guest

    Re: NCSL (non-commentary source lines) (VB6)

    I do agree with those two criteria; I would also count lines that had comments at the end. Thank you for reminding me about "REM" (ah... something familiar about the old Basis that I hated... <img src=/S/smile.gif border=0 alt=smile width=15 height=15> I tend to agree that it wouldn't be hard to write such a utility... I was just hoping someone else already had. I'll plan to post it here when I write it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •