Results 1 to 4 of 4

Thread: Finding no.of variables used and counting the no.of lines

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Location
    Chennai, INDIA
    Posts
    2

    Talking Finding no.of variables used and counting the no.of lines

    Well........my question is this.........how will you count the no.of lines of a VB program using VB itself...and also how will you find the no.of variables used in a VB program

    regards
    R.Subramanian

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Think you will have to make a program that scan through your CLS,FRM,CTL and BAS files while counting it all
    -= a peet post =-

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Location
    Chennai, INDIA
    Posts
    2

    Question

    hi,
    actually i am looking for a code which will count the no.of lines in the code section of the form and which will also count the no.of variables used... How can we achieve this using VB code

    Regards
    R.Subramanian

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well as peet said you would just write another application that opens your source code for the other app, and then goes throught the source files and counts variables/lines etc.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

Posting Permissions

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



Click Here to Expand Forum to Full Width