Hi,
I would like to see a "result" variable built into each routine that returns it automatically upon exiting (either completing or using the Return (i.e. exit)
For example:
I would like to see a "result" variable built into each routine that returns it automatically upon exiting (either completing or using the Return (i.e. exit)
For example:
B4X:
Sub DoSomething(param as boolean) as boolean
'result is automatically included as a local variable as boolean (or whatever type the routine returns)
try
'doing something
result=true
catch
result=false
end try
'upon completion our result is automatically returned, i.e. no need to use: return result
End Sub