[Gambas-user] question about CATCH
M0E Lnx
m0e.lnx at ...626...
Thu Jun 18 22:31:46 CEST 2009
So I've been looking at this http://gambasdoc.org/help/lang/catch
My question is... Can the sub/function continue after catch has been
declared, or should catch always be the last thing in the sub?
For instance
PUBLIC SUB Save_a_file()
DIM sStr AS String
File.Save("/tmp/test",sStr)
CATCH
PRINT "Error saving file"
' Can I still have code here... after the catch, or is everything
after CATCH considered to be executed only after an error?
END
More information about the User
mailing list