calling a remote function..
Scott Rossi
scott at tactilemedia.com
Fri Jan 19 10:00:07 EST 2007
Recently, Chipp Walters wrote:
> TRY YOURSELF
> Create a new stack:
> create button "bar" with script:
>
> function foo param1,param2
> answer param1 &cr& param2
> end foo
>
> Create another button "PressMe"
>
> on mouseUp
> put "1,000" into param1
> put "soldiers" into param2
> answer value("foo(param1,param2)",btn "bar")
> end mouseUp
Not 100% solution, but when you remove the comma, this works:
on mouseUp
put "1000" into param1
put "soldiers" into param2
put "foo(" & param1,param2 & ")" into func
answer value(func,btn "bar")
end mouseUp
Regards,
Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com
More information about the use-livecode
mailing list