Just got back and tried it... only the catch in ihaserror() runs. Makes
sense.
--
View this message in context:
http://www.nabble.com/catching-errors-tp22969154p22969611.html
Sent from the gambas-user mailing list archive at Nabble.com.
-
Hi,
I've been using CATCH as a sort of rudimentary catch all error handling in
my code. Just got a small question about when Gambas will run this code:
Example code follows
PUBLIC SUB ihaserror()
' the error happens in here
CATCH
PRINT "OH NO!"
END
PUBLIC SUB Main()
ihaserror()
CATCH
PRINT "ERRO