Solved

VB and localerror

Posted on 2000-03-07
8
169 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
  • 2
  • 2
  • 2
  • +1
8 Comments
 
LVL 43

Expert Comment

by:TimCottee
Comment Utility
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
Comment Utility
On Local Error Goto....

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

Expert Comment

by:caraf_g
Comment Utility
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
 
LVL 14

Accepted Solution

by:
mcrider earned 80 total points
Comment Utility
"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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 14

Expert Comment

by:mcrider
Comment Utility
Thanks for the points! Glad I could help!


Cheers!
0
 

Expert Comment

by:t_msenthilk
Comment Utility
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
Comment Utility
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
Comment Utility
hi TimCottee,
             Thank u. I think Microsoft had shifted many thing from ASP to ASP.NET.
             Now both the links works.

 
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

771 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

12 Experts available now in Live!

Get 1:1 Help Now