In a standalone app, I'm trying to handle the closeStackRequest statement to change some stack interface details before to close the stack I use as documents of the app. It seems that when I call a handler, it it has effect only when adding a answer statement at the end of it. Somebody know how to avoid to add an answer call and have it to work anyway?
Please let me know if this question is not clear, and I will try to explain a bit better

Here is an example of the structure I'm using:
Code: Select all
on closeStackRequest
if the cAbc of this stack is not "ON" then
doSomething
else
stopRun
end if
pass closeStackRequest
end closeStackRequest
Code: Select all
on stopRun
if the abc of this stack is "ON" then
send "stopMe" to button "start" of card "myCard"
answer "Stopped" -- without this statement the above statement has not effect
end if
end stopRun