RE: Regarding Handlers...
RE: Regarding Handlers...
- Subject: RE: Regarding Handlers...
- From: "Robert Seckendorf" <email@hidden>
- Date: Mon, 18 Dec 2000 16:35:44 -0800
I have two questions regarding handlers in general... Here goes.
Question #1
Can a handler call another handler during it's execution before returning
to the script that called it? like in the following:
script commands...
handler_a()
more script commands...
end script
on handler_a()
commands
handler_a1()
return()
end handler_a
on handler_a1()
commands
return()
end handler_a1
Question #2
Is it not possible to call a handler from within an if statement...
I have tried the following but keep getting errors from the compiler.
display dialog "What is your favorite color?" button {"Red", "Blue",
"Neither"}
default = 1
set someValue to text returned from result
if someValue = "Red" then
goToRedHandler()
else if someValue = "Blue" then
goToBlueHandler()
end if
Any comments?
Thanks in advance.