functions in other stacks: how to call?

Jeanne A. E. DeVoto jeanne at
Sun Dec 1 18:29:00 EST 2002

At 2:59 PM -0800 12/1/02, Dar Scott wrote:
>>   put value("myFunction()", stack "My Stack) into myValue

>However, both have the same limitation.  Without a lot of work, they
>both are limited to simple constant parameters.  As soon as I use a
>variable as a parameter to the function, I have problems.  This works:
>   put value("myFunction(23)", stack "My Stack") into myValue
>This does not:
>   put complicatedString() into alpha
>   put value("myFunction(alpha)", stack "My Stack") into myValue
>Is there a way to pass general parameters?

You just have to do a bit of fancy footwork with quotes and &:

  put value("myFunction(" & alpha & ")",stack "My Stack") into myValue

Jeanne A. E. DeVoto ~ jeanne at
Runtime Revolution Limited - The Solution for Software Development

More information about the Use-livecode mailing list