Hi Scott,

If the desired result is to display an answer dialog, then see if this works
for you:

on mouseUp
 put "hello" into pData1
 put "world" into pData2
 answer shout(pData1,pData2)
end mouseUp

function shout pData1,pData2
 return pData1 && pData2 & "!"
end shout

I put the exclamation mark in the function for you to see that the function
is still part of the solution.
Also, you could extrapulate the 'answer' with the icon and dialog title,
etc.

Regards,
Mark Stuart


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
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Reference-Function-Name-Via-Variable--tp21488235p21490021.html
Sent from the Revolution - User mailing list archive at Nabble.com.

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to