PC Review


Reply
Thread Tools Rate Thread

Displaying Line #'s

 
 
jutlaux
Guest
Posts: n/a
 
      8th Jan 2008
I would like to add line numbers through out my VB code and then when I get
errors be able to display what line # caused the problem with a msgbox. The
problem I have is that I can not remember the format for the line # or the
code to display them.

For some reason I thought there was predefined structure to do this, but
maybe I'm way off target here.



 
Reply With Quote
 
 
 
 
BigJimmer
Guest
Posts: n/a
 
      8th Jan 2008
MZTools (www.mztools.com) will do what you need.

"jutlaux" wrote:

> I would like to add line numbers through out my VB code and then when I get
> errors be able to display what line # caused the problem with a msgbox. The
> problem I have is that I can not remember the format for the line # or the
> code to display them.
>
> For some reason I thought there was predefined structure to do this, but
> maybe I'm way off target here.
>
>
>

 
Reply With Quote
 
jutlaux
Guest
Posts: n/a
 
      8th Jan 2008
I used that to add the line #'s to the code, but is there a way to use those
numbers in a msgbox.


"BigJimmer" wrote:

> MZTools (www.mztools.com) will do what you need.
>
> "jutlaux" wrote:
>
> > I would like to add line numbers through out my VB code and then when I get
> > errors be able to display what line # caused the problem with a msgbox. The
> > problem I have is that I can not remember the format for the line # or the
> > code to display them.
> >
> > For some reason I thought there was predefined structure to do this, but
> > maybe I'm way off target here.
> >
> >
> >

 
Reply With Quote
 
BigJimmer
Guest
Posts: n/a
 
      8th Jan 2008
It's stored in Erl

msgbox("Error " Err.Number & " in line " & Erl)

"jutlaux" wrote:

> I used that to add the line #'s to the code, but is there a way to use those
> numbers in a msgbox.
>
>
> "BigJimmer" wrote:
>
> > MZTools (www.mztools.com) will do what you need.
> >
> > "jutlaux" wrote:
> >
> > > I would like to add line numbers through out my VB code and then when I get
> > > errors be able to display what line # caused the problem with a msgbox. The
> > > problem I have is that I can not remember the format for the line # or the
> > > code to display them.
> > >
> > > For some reason I thought there was predefined structure to do this, but
> > > maybe I'm way off target here.
> > >
> > >
> > >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying Tasks on more than one line Nick W Microsoft Outlook Discussion 0 27th May 2009 12:51 PM
displaying a line graph ravindar thati Microsoft Access Form Coding 1 22nd Apr 2007 05:04 AM
Displaying results on one line =?Utf-8?B?cGhhbmRh?= Microsoft Access Reports 2 26th May 2006 01:11 AM
Stop displaying a line =?Utf-8?B?SmVyZXpfeg==?= Microsoft Excel Misc 1 7th Jul 2004 12:45 PM
manually displaying on the next line Albert Byun Microsoft Excel Discussion 1 3rd Jun 2004 09:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:27 AM.