Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VB and localerror

Posted on 2000-03-07
8
Medium Priority
?
185 Views
Last Modified: 2010-05-02
Hello,

Has anybody ever heard of localerror
in VB, by the way it is not a user created error label.

Thank you for your time!

rai
0
Comment
Question by:rai_t
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
8 Comments
 
LVL 43

Expert Comment

by:TimCottee
ID: 2591153
The only mention of it in MSDN is:

Private Function AnyFunction() As Integer

On Error GoTo LocalError
' Normal procedure code goes here.

Exit Function
LocalError:
If Fatal("Module.AnyFunction") = vbRetry Then
    Resume
Else
    Resume Next
End If

End Function

But that is a local defined error label.
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2591169
On Local Error Goto....

Never noticed any difference between this and the On Error construct.
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2591173
Perhaps it's something that's in VB for backward compatibility but ceased to have a noticeable effect. Like showing a message box system modal. The system modal option is still there, but it doesn't actually work anymore in Win32.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 14

Accepted Solution

by:
mcrider earned 320 total points
ID: 2591217
"On Local Error" goes back to VB1-VB3.

Back then, you couldn't use the On Error Goto and On Event Gosub statements in a form because they require an event handler at the module level, and you couldn't enter code at the module level of a form... Line labels and line numbers were allowed in the module level of a form module, but they are useless.


See the following Microsoft KB articles:

Error: Executable code not allowed in module level of a form
http://support.microsoft.com/support/kb/articles/Q94/6/95.ASP?LNG=ENG&SA=MSDN&FR=0 

INFO: Error Codes & Descriptions for Visual Basic for MS-DOS 1.0
http://support.microsoft.com/support/kb/articles/Q99/7/20.ASP?LNG=ENG&SA=MSDN&FR=0 
 


Cheers!®©




0
 
LVL 14

Expert Comment

by:mcrider
ID: 2591646
Thanks for the points! Glad I could help!


Cheers!
0
 

Expert Comment

by:t_msenthilk
ID: 9901435
Error: Executable code not allowed in module level of a form
http://support.microsoft.com/support/kb/articles/Q94/6/95.ASP?LNG=ENG&SA=MSDN&FR=0 

INFO: Error Codes & Descriptions for Visual Basic for MS-DOS 1.0
http://support.microsoft.com/support/kb/articles/Q99/7/20.ASP?LNG=ENG&SA=MSDN&FR=0 

These two link page are not there in microsoft site..........!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

When clicked it just redirecting to the page not found ASP page.
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 9903812
http://support.microsoft.com/default.aspx?scid=kb;en-us;94695
And
http://support.microsoft.com/default.aspx?scid=kb;en-us;99720

Instead. Microsoft has changed the way that their links work and these are the new style.
0
 

Expert Comment

by:t_msenthilk
ID: 9908999
hi TimCottee,
             Thank u. I think Microsoft had shifted many thing from ASP to ASP.NET.
             Now both the links works.

 
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
Suggested Courses

721 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