best way to shut down app

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bsouthuk
Posts: 261
Joined: Fri Dec 05, 2008 7:25 pm

best way to shut down app

Post by bsouthuk » Fri Sep 23, 2011 7:07 pm

Hi

I am struggling to decide on the best way to code a button that basically closes down my desktop application when user no longer wants to user it.

Is it a simple:

Code: Select all

close stack "ThisStack" ??
What if their are a number of stacks open at the same time? What is the best way to code this?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: best way to shut down app

Post by Mark » Fri Sep 23, 2011 7:50 pm

Hi too,

Here's an example
http://runrev.info/Save%20Way%20to%20a%20Quit.htm

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

bsouthuk
Posts: 261
Joined: Fri Dec 05, 2008 7:25 pm

Re: best way to shut down app

Post by bsouthuk » Fri Sep 23, 2011 8:09 pm

Thats great Mark, thank you very much.

One more thing, if my user wanted to 'logout' therefore all stacks are to close apart from the main stack what would be best then?

Post Reply