[Gambas-user] Set/GetProperty/Find Method feature request

Bruce adamnt42 at gmail.com
Sun May 24 01:42:00 CEST 2020



On 24/5/20 8:59 am, Jussi Lahtinen wrote:
>>
>> TRY/IF Error cant have code in between.
>>
> 
> It can, but you might lose info about the initial error.
> 

Yep, much more correct than I.
For example

' Gambas module file

Public Sub Main()

   Try Print 1 / 0
   Print Something()
   If Error Then Print "Error", Error.Code, Error.Text

End

Private Sub Something()

   Print "Hello world"

End

The div0 error is lost.
b


More information about the User mailing list