Re: [Gambas-user] Probably a really dumb question about Error

2016-05-18 Thread Benoît Minisini
Le 18/05/2016 12:47, richard terry a écrit : > Hi List, > > I ran in to an odd problem when I used: > > Try whatever > If error then > do-somehing > end if > > Where despite Try Whatever, not generating an error, it still when on to > the do-something. When I logged what was happening, it was

Re: [Gambas-user] Probably a really dumb question about Error

2016-05-18 Thread Jussi Lahtinen
Depends on your needs. You can use Try without Error, if you don't need to handle the error situation, but that's bit weird and probably not the right way to do what ever you try to do. Otherwise I use it like this: Try something If Error Then do something Error.Clear Endif So, you need to c

[Gambas-user] Probably a really dumb question about Error

2016-05-18 Thread richard terry
Hi List, I ran in to an odd problem when I used: Try whatever If error then do-somehing end if Where despite Try Whatever, not generating an error, it still when on to the do-something. When I logged what was happening, it was carrying forward the last known error in my program (in this ca