Close Application

Hi I’m struggling to find a way to close my program completely via code?

I feel my brain has shut down for the night! could someone please point me in the right dirrection?


:smiley: knew it was something simple!!! I was looking at app.close…app.kill…app.stop

cheers :slight_smile:

QUIT will automatically call the WINDOW.CLOSE and APP.CLOSE events (actually the CANCELCLOSE then CLOSE events) so you can perform application specific clean up actions if any are required.

sometimes although calling QUIT my application closes but the process is resident in taskbar

This usually indicates that during the close process you referernces some property or attribute of a WINDOW that has an “implicit instance flag” set, so that window ends up still active.