Confirm message
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Confirm message
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.
-
- VIP Livecode Opensource Backer
- Posts: 256
- Joined: Sun May 27, 2007 8:19 pm
Re: Confirm message
You can trap closeStackRequest in your main stack
Martin
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
Thanks Martin,
I'll let you know how it goes.
Mike
I'll let you know how it goes.
Mike