Page 1 of 1

Confirm message

Posted: Mon Aug 17, 2015 11:06 pm
by melong
is it possible, in live code, to create a confirm message? For instance, once you close an app, etc. a message appears that says "you are about to close this app. Do you want to continue?" YES. NO.

Re: Confirm message

Posted: Tue Aug 18, 2015 5:24 am
by Martin Koob
You can trap closeStackRequest in your main stack

Code: Select all

on CloseStackRequest
   answer info "You are about to close this app. Do you want to continue?" with "Yes" or "No"
   if it = "Yes" then
        -- passing closestackrequest will close stack:
       PASS closestackrequest
   end if
   --if you don't pass closestackrequest the app wont close
end CloseStackRequest

Martin

Re: Confirm message

Posted: Wed Aug 19, 2015 2:08 am
by melong
Thanks Martin,

I'll let you know how it goes.

Mike