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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With