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

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to