Constructing and calling a handler as "do"
Randall Lee Reetz
randall at randallreetz.com
Sun Jan 13 18:25:43 EST 2008
Well here is the thing. I am constructing handlers that i then call with:
Do myhandler -- now holds "crd_handler"
-----Original Message-----
From: "Mark Schonewille" <m.schonewille at economy-x-talk.com>
To: "How to use Revolution" <use-revolution at lists.runrev.com>
Sent: 1/13/2008 2:51 PM
Subject: Re: Constructing and calling a handler as "do"
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
_______________________________________________
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