How do I close my app programatically?

rfresh

Well-Known Member
Licensed User
Longtime User
I'd like to click on one of my app buttons, have it execute the code in the click event and then automatically 'close' the app.

I suppose if I wanted to Pause the app so I could call the Activity_Pause function, but is there a way to completely shut down the app rather than pause it?

Thanks...
 

rfresh

Well-Known Member
Licensed User
Longtime User
Note: I added

Activity_Pause (True)

at the end of my button click event. The app remained displayed, I thought it would hide (paused) and the home screen would display.

I'd like to click on the button and then have the last code in that click event terminate the app and display the home screen.
 
Upvote 0

MaxApps

Active Member
Licensed User
Longtime User
Activity.Finish does not completely terminate the app.
In one of my apps, I have a slideshow that you can start/stop and if if have the slideshow started and then do an Activity.Finish and then start the app again the slide show is still running and I cannot stop it from running!

Is there a way to COMPLETELY stop the app?

Kind regards
Jakob
MaxApps
 
Upvote 0

MaxApps

Active Member
Licensed User
Longtime User
I get:

Compiling code. Error
Error compiling program.
Error description: Unknown member: exitapplication
Occurred on line: 1123
Activity.ExitApplication
Word: exitapplication

from Activity.ExitApplication

Kind regards
Jakob
MaxApps
 
Upvote 0
Top