Reference Function Name Via Variable?
Mark Schonewille
m.schonewille at economy-x-talk.com
Thu Jan 15 17:47:55 EST 2009
Scott,
The easy way to do this might be to use a custom property instead of a
function. Get the someProperty[pData1 & cr & pData2] of me. Perhaps
someProperty[pData1][pData2] works too, I haven't tried that yet. Then
again, why don't you simply put the function into a backscript?
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum
We are always looking for new projects! Feel free to contact us to
discuss your custom software project!
On 15 jan 2009, at 20:45, Scott Rossi wrote:
> Hi List:
>
> Just curious... Is there any way to construct a function using a name
> stored in a variable without resorting to "do"? For example:
>
> on mouseUp
> put "hello" into pData1
> put "world" into pData2
> put "shout" into test
> do "answer" && test & "(pData1,pData2)"
> end mouseUp
>
> function shout pData1,pData2
> return pData1 && pData2
> end shout
>
> Can the last line of the mouseUp handler be written without "do"?
> I'm not
> against using "do", just wondering if there's another option.
>
> Thanks & Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, Multimedia & Design
More information about the use-livecode
mailing list