Try Catch Finally

abhishek007p

Active Member
Licensed User
Longtime User
Does B4A supports 'Finally' in exception handling ?

like

B4X:
Try

Catch

Finally

End Try


Regards,
abhishek
 

Fercho

New Member
Hi, ¿do you plan to support the finally statement? The usefullness for this for garbage collecting statement is long explained on the web, even PHP5 will include it.
The alternative (try/catch inside try/catch) es inneficient to code.
 
Upvote 0

Fercho

New Member
Well, in the Finally section you usually free resources (close connections, close databases, free objects, unbind events,...) and all class of tasks that need to be done before returning to parent caller.
 
Upvote 0
Top