passing parameters in a send call.

Sarah Reichelt sarah.reichelt at gmail.com
Sun May 21 17:01:24 EDT 2006


> I am using a script code that is built in runtime and executed with a
> "do" call. The code calls a send function. I know you can use send
> with parameters like:
>
> send "myAdd 2, 2" to stack "someStack"
>
> this works. but sending an array like
>
> send "myAdd pArrayA" to stack "someStack"
>
> causes the myAdd handler to be called with an empty parameter. Does
> anyone here have a clue about that? If this is indeed not possible.
> Do anyone here have a suggestion on how to pass an array to an
> arbitrary function of a stack that will only be known in runtime.

I always use something like:
   send "myAdd " & pArrayA to stack "someStack"

so that the variable is evaluated before the send.

HTH,
Sarah



More information about the use-livecode mailing list