Solved

Help VB6 Finding Code Line Number

Posted on 2004-08-24
7
192 Views
Last Modified: 2010-05-02
I am trying to make an exe file but I get an error on line xxxxx. Is there a way to find the line number without arrow down and counting each one.
0
Comment
Question by:falconone2
  • 4
  • 3
7 Comments
 
LVL 3

Expert Comment

by:nichia
Comment Utility
When in the VB IDE, the cursor position is given in the toolbar.  As you scroll down, you will see the Ln (for line) and Col (for column) update.  Use the Ln number to find the correct line number where the error lies.

Hope it helps!
0
 

Author Comment

by:falconone2
Comment Utility
I have not been doing this long. So will you tell me how to put it in VB IDE
Sorry if this sounds stupid.
0
 
LVL 3

Expert Comment

by:nichia
Comment Utility
The IDE is the "Integrated Development Environment" which is what you are using when you run Visual Basic.  When you are editing your code, you should see in the toolbar (just under the menu bar) an area which displays your current cursor position in the editor.  It will look something like "Ln 32, Col 4"
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 3

Expert Comment

by:nichia
Comment Utility
If you do not see it, make sure that the "Standard Toolbar" is checked in the View->ToolBars->Standard menu selection.
0
 

Author Comment

by:falconone2
Comment Utility
I know I have seen it before but it is not showing up in the toolbar. I have closed all tools but one and nothing is there. If there is nothing I can do to turn it on tell me and I will accept your answer. Thanks falconone2
0
 

Author Comment

by:falconone2
Comment Utility
Standard Toolbar is the one I had left on. Just no LN etc.
0
 
LVL 3

Accepted Solution

by:
nichia earned 250 total points
Comment Utility
It should appear when you have a code window open (editing the text of the code)
If you have a Form window open (designing a form) the toolbar will display the XY coords of the form's conrols as you place or move them.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now