Constructing and calling a handler as "do"
Mark Schonewille
m.schonewille at economy-x-talk.com
Sun Jan 13 17:51:22 EST 2008
Hi Randall,
put (the myprop of me) & "_handler" into thshandler
would be the most reliable. Without parantheses, in more complex
syntax, you run into the risk of calling an object with the name (me
& "_handler") where me contains a reference to a control.
Why do you use underscores? An underscore is more 'difficult" to type
than a space, at least on my keyboard, and more difficult to read.
Best regards,
Mark Schonewille
--
Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Quickly extract data from your HyperCard stacks with DIFfersifier.
http://differsifier.economy-x-talk.com
Op 13-jan-2008, om 23:21 heeft Randall Lee Reetz het volgende
geschreven:
> If i have a property called myprop and want to call a handler of
> concoctinated name in a do statement...
>
> Put the myprop of me &"_handler into thshandler
> -- yealds "card_handler"
> Do thshandler
>
> Or do i have to
>
> Do "put the myprop of me "e&"_handler""e
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list