T Terence Agius Member Licensed User Feb 19, 2018 #1 Is it possible to exit a sub prematurely eg [/code] Sub somesub If Condition Then Exit sub End if End Sub B4X:
Is it possible to exit a sub prematurely eg [/code] Sub somesub If Condition Then Exit sub End if End Sub B4X:
DonManfred Expert Licensed User Longtime User Feb 19, 2018 #2 Please use [CODE]code here...[/CODE] tags when posting code. See this: https://www.b4x.com/android/forum/pages/results/?query=exit Check @MarkusR answer.... Last edited: Feb 19, 2018 Upvote 0
Please use [CODE]code here...[/CODE] tags when posting code. See this: https://www.b4x.com/android/forum/pages/results/?query=exit Check @MarkusR answer....
Derek Johnson Active Member Licensed User Longtime User Feb 19, 2018 #4 Terence Agius said: Is it possible to exit a sub prematurely Click to expand... The word you are looking forward is "Return" I guess you have just started using B4A having come from a VBA/VB background. Have a look here for further help. https://www.b4x.com/android/forum/threads/converting-vb6-to-b4a.9347/ Derek Upvote 0
Terence Agius said: Is it possible to exit a sub prematurely Click to expand... The word you are looking forward is "Return" I guess you have just started using B4A having come from a VBA/VB background. Have a look here for further help. https://www.b4x.com/android/forum/threads/converting-vb6-to-b4a.9347/ Derek
Erel B4X founder Staff member Licensed User Longtime User Feb 19, 2018 #5 Check Subs & Variables tutorial: https://www.b4x.com/etp.html Upvote 0