closeRequest with starter-kit?
Niklas Almesjö
niklas_almesjo at yahoo.com
Fri Jan 18 11:06:01 EST 2002
So I have to check a condition if I should allow the app to
quit or not. Does anyone have a tip on how you can squeeze
in the closeRequest handler if you are using the
starterkit? Problem is I am already using onOpenCard and
onPreOpenCard so the lines are runnin out, and "pass
closeStackRequest" can't be in a function or in another
object it seems (must be in the cardscript). Here's the
script;
global sPrefs
on preOpenCard
send "setStuff" to field "setStuff"
end preOpenCard
on openCard
send "checkReg true" to field "daReg"
end openCard
on closeStackRequest
-- squeeze in a condition, and pass closeStackRequest here
:)
end closeStackRequest
any tip appreciated,
thanks,
/Niklas
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
More information about the use-livecode
mailing list