Link to home
Create AccountLog in
Visual Basic Classic

Visual Basic Classic

--

Questions

--

Followers

Top Experts

Avatar of jkeepence
jkeepence

"On local error" v's "On Error"
What is the difference between these two statements for VB ?

I have searched and searched MSDN but can't find it ?  Does anyone know ?  If so does anyone have a link to an MSDN articleon it ?

Thanks,
jk

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of Éric MoreauÉric Moreau🇨🇦

I think that today, both means exactly the same thing. In the past (BasicA) there was a difference but not with VB6.

Avatar of rspahitzrspahitz🇺🇸

Where did you run across this?  I've been doing Basic since just after BASICA (actually used other platforms before that) and never ran across it in GWBASIC, QuickBASIC, or VB.  (I did a bit of BASICA and BASIC/DOS) but not enough to use variations on the On-Error.

So I suspect that E.M. is correct.

Avatar of rspahitzrspahitz🇺🇸

Further...since a help search for "local" leads you to "On Error Statement" I suspect it's obsolete but still supported as "deprecated."

(However, I've found some places in help that lead to the wrong topic area so I wouldn't entirely count it out, but it at least leads you to the correct context.)

I'm guessing it's not in help because it's deprecated and MS wants to get rid of it.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


ASKER CERTIFIED SOLUTION
Avatar of Éric MoreauÉric Moreau🇨🇦

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of jkeepencejkeepence

ASKER

rspahitz - I couldn't find 'on local error' anywhere in doco - but was in someones code that is using VB6 so didn't know whether it was new or old....thanks for your input

emoreau - thanks for the link and the extra info - that was going the extra yards and wins the points - appreciated.

jk
Visual Basic Classic

Visual Basic Classic

--

Questions

--

Followers

Top Experts

Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.