Quitting Question
Joe Lewis Wilkins
pepetoo at cox.net
Tue Nov 16 16:39:43 EST 2010
Hi Mark,
Since I got it to work perfectly, I thought some others might appreciate a snippet! Probably a neater and shorter way of doing this, but what the heck! I suppose I could have just gone for the name of the application, but this is generic enough to handle any stack with any standalone name.
Joe Wilkins
case "Quit"
get the long name of this stack
delete the last char of it
put the number of chars in it into numChars
put Char (numChars-2) to numChars of it into myName
if myName is "rev" then
closeStackRequest
else
shutDownRequest
end if
break
On Nov 16, 2010, at 10:16 AM, Mark Schonewille wrote:
> Hi Joe,
>
> Are you using a Mac? Try the closeStackRequest message in the IDE and the shutdownRequest messages in the standalone.
>
> This script http://runrev.info/Save%20Way%20to%20a%20Quit.htm might also help you.
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> Follow Economy-x-Talk on Facebook now and get a free Color Converter license http://qurl.tk/gn (read the conditions)
>
> On 16 nov 2010, at 19:14, Joe Lewis Wilkins wrote:
>
>> Hi all,
>>
>> The Quit item in my apps menu has a Do you want to save Answer Dialog, but in the IDE it is over-ridden by LC with its own version - a sheet. With the standalone I get nothing. It just quits. How come? I guess I must be doing something wrong.
>>
>> Joe Wilkins
>>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list