Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VB6 - Line Numbering at build time

One of the cool things about VB6 is that if you add a line numbers to your code is that the ERL function will return it if an error occurs.

I use MZ-Tools for VB6 to add line numbers to the entire project, which is really cool, however, it's a pain to work with code that is numbered. So I typically remove the lines while I work on it.

I was wondering whether there is a command line way to add/remove line numbers using either MZ-Tools or something else? I'd like to incorporate it into the build process.

Thanks.

like image 966
AngryHacker Avatar asked Mar 23 '09 23:03

AngryHacker


2 Answers

Googling turned up these tools which, apparently, are command-line tools that will add line numbers and then build the project. I haven't tried them.

  • Visual Basic Expert - freeware
  • VB Builder - $30 at the time of typing
  • VB Watch Protector - $300 at the time of typing, but it does many other things besides.

You'd want to hook this up with your version control system and check in the line-numbered code.

BTW the VB6 discussion group is an excellent place to Google for this sort of stuff.

like image 140
MarkJ Avatar answered Oct 11 '22 22:10

MarkJ


I once downloaded a great tool for line numbering VB6 applications during the build process (I think from a forum) but I've since lost the original location and author. I went and posted the tool here on my blog, at least until someone tells me where the original code is, and who the author was.

It's a GUI tool with a command line interface and Windows shell integration. Not bad. It comes with the source code in VB6, so it's pretty nifty. I've used it successfully.

like image 38
Scott Whitlock Avatar answered Oct 11 '22 22:10

Scott Whitlock