If you make a new button, and put this into its script
Code: Select all
on mouseUp
testNothing
end mouseUp
on testNothing
end testNothing
Craig Newman
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
on mouseUp
testNothing
end mouseUp
on testNothing
end testNothing
Code: Select all
on mouseUp
put random(999) into xx
findVarVal xx
end mouseUp
on findVarVal xx
-- what is xx?
end findVarVal
I'm guessing the debugger can't work without knowing which handler it's in, and it can't know that until the declaration line executes.Also, why "end" works, but not the "on"? (but who cares?)
YES!Klaus. Do you think I just make this stuff up?
Ah, the old "solidarnosc" thingie, OKAs the three oldest LC'ers on the planet, we have to stick together
But I can't leave unresolved conversations alone. It's a compiler, it doesn't know anything until it's seen it. Same reason you have to declare script variables above any handler that uses them.dunbarx wrote:Jacque.
Hmmm.
But then how does it know which handler it is in anyway? In other words, what does following content have to do with it?
I don't think this warrants much anguish. It just was interesting for a second.
Craig