Make sure that somewhere in the same function or procedure you have exactyle
this label:

        addPOIError:

One problem that I experienced was that I had several procedures, which I
wanted to respond to errors in the same way.  Unfortunately I had to enter
the same label and error handling in each procedure since you can only
"GoTo" a label in the same procedure or function.

I anybody else has a less tedious solution, then please let us know.

Michael Hanna

-----Original Message-----
From: Mark Williamson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 8:35 AM
To: [EMAIL PROTECTED]
Subject: MI-L OnError GoTo


Hi

I'm trying to set up an OnError statement for a 
Server_Execute call to a remote DB. 

OnError GoTo addPOIError
... call to db



outside Sub/Function

addPOIError: Note "Error adding POI"


However I am getting an unresolved label error when 
compiling. Any ideas

Thanks

Mark
--
Mark Williamson
Heriot-Watt University
[EMAIL PROTECTED]


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to