Olaan Expert Licensed User Longtime User Dec 13, 2013 #1 Hi Erel, Assume my coding is Sub Module if condition then log("My Answer is" &result) return <= Is right? I need to stop program because I can get answer already. end if .... do something continue. .... End Sub Attachments ThepartofMyProgram.png 17 KB · Views: 416
Hi Erel, Assume my coding is Sub Module if condition then log("My Answer is" &result) return <= Is right? I need to stop program because I can get answer already. end if .... do something continue. .... End Sub
Erel B4X founder Staff member Licensed User Longtime User Dec 13, 2013 #2 Yes, you can use Return to exit from the current sub. Upvote 0
aminoacid Well-Known Member Licensed User Longtime User Mar 2, 2014 #3 yes, i was wondering about that. How do you completely terminate a program and stop it from running? Upvote 0
eps Expert Licensed User Longtime User Mar 2, 2014 #4 Amin Ismail said: yes, i was wondering about that. How do you completely terminate a program and stop it from running? Click to expand... The best thing is not to. Just let Android handle this, it will halt your App when resources are low. Upvote 0
Amin Ismail said: yes, i was wondering about that. How do you completely terminate a program and stop it from running? Click to expand... The best thing is not to. Just let Android handle this, it will halt your App when resources are low.
margret Well-Known Member Licensed User Longtime User Mar 2, 2014 #5 Amin Ismail said: yes, i was wondering about that. How do you completely terminate a program and stop it from running? Click to expand... You can use Activity.Finish, you can also use ExitApplication. The ExitApplication is not recommended. Upvote 0
Amin Ismail said: yes, i was wondering about that. How do you completely terminate a program and stop it from running? Click to expand... You can use Activity.Finish, you can also use ExitApplication. The ExitApplication is not recommended.