>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