Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
In VFP can i use On error goto Errorhandler like VB
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00790450
Message ID:
00790491
Views:
25
>Hello Nick,
>
>i do use this:
>
>ON ERROR DO "PROGRAMS\mapierror"
>
>the problem is when an error occurs it says that it is unable to find the mapierror.prg.
>
>But i do have a mapierror.prg in the programs folder.
>
>Thank you.

What is your working directory when the error happens? You are probably in another place when it happens, so you path does not work. You can trace in the Debugger and check it. I would suggest not to include the relative path there, but add the PROGRAMS directory to your application path instead.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform