Hi Silke,

I've had problems with error handling in the past too. I found I could only get
the handler to work if it was at the very beginning of a subroutine (right
after the DIM statements).

Hope this helps

Ian Allan

Silke Keuerleber wrote:

> Dear listers,
>
> Can anyone tell me, why the following code doesn't force the program to use
> the errorhandler routine whenever anyfile doesn't exist?
>
> sub anysub
>
>   OnError Goto Errorhandler
>
>   .
>   ..
>   ...
>
>   Register Table anyfile TYPE ASCII Delimiter 59 Titles Charset
> "WindowsLatin1" Into anytable
>   skip:
>
>   .
>   ..
>   ...
>
>   exit sub
>
>   Errorhandler:
>     if instr(0,error$(),"errormessage") then
>       resume skip
>     end if
>
> end sub
>
> Silke Keuerleber
>
> PTV AG
> Verkehrstelematik
> Softwareentwicklung
>
> Tel.:   +49 7 21 96 51- 465
> Fax:    +49 7 21 96 51- 693
> E-Mail: [EMAIL PROTECTED]
> ____________________________
>
> PTV
> Planung Transport Verkehr AG
> Stumpfstrasse 1
> 76131 Karlsruhe
> Germany
> http://www.ptv.de
> http://www.reiseplanung.de
> http://www.varta-guide.de
> http://www.cityguidefinder.de
>
> ----------------------------------------------------------------------
> To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
> "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to