Home All Groups Group Topic Archive Search About
Author
7 Jul 2005 7:38 PM
Ben
Could someone please tell me if there is a way to get VB to display all of
the line number per liine to the left of the code windows?  Right now, I
could only see the line windows in the toolbar, but it would be great if I
could see all of the lines.

Thanks.
Ben

Author
7 Jul 2005 7:50 PM
Tim Baur
=?Utf-8?B?QmVu?= <B**@discussions.microsoft.com> wrote in
news:A76F845F-C158-4B21-B3F8-AE8C9B9A8229@microsoft.com:

> Could someone please tell me if there is a way to get VB to display
> all of the line number per liine to the left of the code windows?
> Right now, I could only see the line windows in the toolbar, but it
> would be great if I could see all of the lines.
>
> Thanks.
> Ben
>

Try the MZTools addin, www.mztools.com.

It's freeware.
Author
7 Jul 2005 7:54 PM
Ken Halter
"Ben" <B**@discussions.microsoft.com> wrote in message
news:A76F845F-C158-4B21-B3F8-AE8C9B9A8229@microsoft.com...
> Could someone please tell me if there is a way to get VB to display all of
> the line number per liine to the left of the code windows?  Right now, I
> could only see the line windows in the toolbar, but it would be great if I
> could see all of the lines.
>
> Thanks.
> Ben

Other than VB's toolbar, line numbers aren't available.

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..
Author
8 Jul 2005 4:41 AM
MikeD
"Ben" <B**@discussions.microsoft.com> wrote in message
news:A76F845F-C158-4B21-B3F8-AE8C9B9A8229@microsoft.com...
> Could someone please tell me if there is a way to get VB to display all of
> the line number per liine to the left of the code windows?  Right now, I
> could only see the line windows in the toolbar, but it would be great if I
> could see all of the lines.


Line numbers are basically (no pun intended) a thing of the past (LONG
past... IIRC, GW-BASIC required line numbers, but even QBasic didn't). VB
supports them (and they can definately be useful, particularly for error
reporting and debugging), but you have to add them yourself. The "line
numbers" you're seeing in the toolbar aren't the same as "line numbers" you
add to your code. In fact, they're really not even closely related. Line
numbers added to your code identify a particular line of code (which you can
get using the undocumented Erl function).

A number of add-ins make adding line numbers considerably easier. MZ-Tools
is one such add-in and the best part is that it's free. You can download it
at www.mztools.com.

--
Mike
Microsoft MVP Visual Basic