On Jul 9, 2011, at 1:20 AM, Chipp Walters wrote:
> Here's one for you, Dick..
> In the above mentioned stack there's this part of a script, which is used to
> pass the function params onto a handler:
>
> *if* the paramcount = 0 *then*
>
> *send* "initMe" to tObj
>
> *else*
>
> *repeat* with x=1 to the paramcount
>
> *put* "param(" &x& ")," after tParams
>
> *end* *repeat*
>
> *delete* last char of tParams
>
> *put* "send " "e&"initMe " & tParams "e& " to tObj" into tDo
>
> *do* tDo
>
> *end* *if*
>
> *
> *
>
> *Is there a way to do this without having to 'do' the script?*
AFAICT, that all boils down to the following:
send "initMe" && word 2 to -1 of the params to tObj
Agree?
But note that both of these ways fail if any parameter is an array.
-- Dick
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode