check if handler exist before using it
Mark Wieder
mwieder at ahsoftware.net
Sat Nov 10 14:11:35 EST 2007
Richard-
Friday, November 9, 2007, 5:28:01 PM, you wrote:
> I may be a bit slow today as I'm caffeine free this afternoon, but
> wouldn't checking for the presence of the stack do the same as checking
> for its handlers?
Pretty much, but not exactly... if I want to call the initialize()
handler on a substack just knowing the stack exists doesn't tell me
that it has an initialize() handler to call. And if it's a protected
stack then I can't even query the script to see if it's there.
--
-Mark Wieder
mwieder at ahsoftware.net
More information about the use-livecode
mailing list