473,322 Members | 1,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Line numbering tools

J L
Are there any free add-ins for VB.Net that will add and remove line
numbers from the source code?

TIA
John
Nov 21 '05 #1
4 2168
John,

I'm not sure, do you just want to have a sepertae file with some source code
that includes line numbers? If so, copy/paste the code into an excel
spreadsheet (Column B), then fill Column A from 1 to however many lines
there are.

If you just want to see line numbers in VB.NET, go to options, select Text
Editor, select Visual Basic, and check the Line Numbers box.

Cheers,
Lee

"J L" <jo**@marymonte.com> wrote in message
news:r3********************************@4ax.com...
Are there any free add-ins for VB.Net that will add and remove line
numbers from the source code?

TIA
John

Nov 21 '05 #2
J L
I may be confused but it seems that you have to include the line
numbers in your souce code if you want to reference them in an error
handler. Is that correct? If so, then I want to add error numbers
prior to my final build. I used to use a tool to do that in VB6 and it
worked great.

I do understand about viewing the line numbers in the IDE and I do use
that.

As an aside, how does VB know the line number at run time? Does it
require a larger EXE or something?

TIA,
John

On Tue, 15 Mar 2005 07:40:06 +0800, "lgbjr" <lg***@online.nospam>
wrote:
John,

I'm not sure, do you just want to have a sepertae file with some source code
that includes line numbers? If so, copy/paste the code into an excel
spreadsheet (Column B), then fill Column A from 1 to however many lines
there are.

If you just want to see line numbers in VB.NET, go to options, select Text
Editor, select Visual Basic, and check the Line Numbers box.

Cheers,
Lee

"J L" <jo**@marymonte.com> wrote in message
news:r3********************************@4ax.com.. .
Are there any free add-ins for VB.Net that will add and remove line
numbers from the source code?

TIA
John


Nov 21 '05 #3
J L
A followup:

I see that if I run in Debug mode, the source line is picked up in the
StackTrace but no if I use Release mode. So I guess that means I could
build my projects all in Debug mode just to get the line number? This
is really a big issue to me. In VB6, when a customer had a problem I
was able to nail it down to a specfic line and that saved lots of time
and headaches...seems we should be able to do that in .Net too.

John

On Tue, 15 Mar 2005 07:40:06 +0800, "lgbjr" <lg***@online.nospam>
wrote:
John,

I'm not sure, do you just want to have a sepertae file with some source code
that includes line numbers? If so, copy/paste the code into an excel
spreadsheet (Column B), then fill Column A from 1 to however many lines
there are.

If you just want to see line numbers in VB.NET, go to options, select Text
Editor, select Visual Basic, and check the Line Numbers box.

Cheers,
Lee

"J L" <jo**@marymonte.com> wrote in message
news:r3********************************@4ax.com.. .
Are there any free add-ins for VB.Net that will add and remove line
numbers from the source code?

TIA
John


Nov 21 '05 #4
>I may be confused but it seems that you have to include the line
numbers in your souce code if you want to reference them in an error
handler. Is that correct?
You should avoid line numbers in .NET for error handlers. That was used in
VB6 using the undocumented Erl function. In .NET you should use exception
handlers. In Debug configuration the exception will tell the file and line,
but not in Release configuration (no .pdb file is generated). In Release
configuration you only get the class/procedure name, but if you use
procedures as short as possible (a good programming practice), knowing the
exception you can easily guess what statement failed. If not, most
exceptions should be reproducible on your side after being reported by the
user, because otherwise it is somewhat risky to try to fix them without
knowing the implications.

If so, then I want to add error numbers prior to my final build.
I used to use a tool to do that in VB6 and it worked great.


MZ-Tools, by chance?

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com


Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Andy Glew | last post by:
I have long looked for (and occasionally posted questions to groups such as this about) a tool that can take a group of HTML pages (nowadays XHTML, or XML) and produce a nicely formatted...
48
by: David J Patrick | last post by:
I'm trying to rewrite the CSS used in http://s92415866.onlinehome.us/files/ScreenplayCSSv2.html. using the w3.org paged media standards as described at http://www.w3.org/TR/REC-CSS2/page.html ...
0
by: stingray | last post by:
Hi I just used Visual C++ to compile a C code. I code a bunch of error messages (mostly syntax errors) How to get to these errors? Is there any automatic line numbering feature that I can use ...
0
by: Juan Romero | last post by:
Hey guys, Does anyone out there have a good method to do line numbering in a richtextbox control? This seemed simple at first glance, but It has proven to be a tough task. I want to create a...
3
by: Jim Bancroft | last post by:
Hi all, In VB6 I used a 3rd party tool for line numbering my source code, to help with debugging. However, in experimenting with VB .Net I've noticed that my exceptions automatically provide...
2
by: Ben | last post by:
Hello all After years of playing developing stuff for fun and personal use I'm finally developing an app that I am intending to sell. As such, I'm trying to make it as reliable and stable as...
2
by: Jitdor | last post by:
Sorry for this rather naive question... Does anyone know of a way to enable vertical sequential line numbering in the code editor window? I've tried various settings in VC# and googling but...
0
by: =?Utf-8?B?TWF0dGhpYXNH?= | last post by:
Hello how can I implement a line numbering in a bound datagridview without using the increment of the Database?
2
by: =?Utf-8?B?R3VzIENodWNo?= | last post by:
I can’t find the line numbering on/off in the option box. Am I missing something? Can any one help me. I’m using visual studio C# 2005 express edition thank You Gus
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.