Using groups as custom dialogs: a solution for Mac, PC and iOS
Dick Kriesel
dick.kriesel at mail.com
Sat Jul 9 04:59:14 EDT 2011
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
More information about the use-livecode
mailing list