calling a remote function..

Dick Kriesel dick.kriesel at mail.com
Fri Jan 19 16:14:44 EST 2007


On 1/19/07 7:50 AM, "Chipp Walters" <chipp at chipp.com> wrote:

> Ding ding. You win the prize.
> 
> answer value("foo(" & q(param1) & comma & q(param2) & ")", btn "bar")

But note that if a param contains more than one line, the value function
does not return the expected result.  Ding dong.

Try this script for button "PressMe" to see for yourself:

on mouseUp pMouseBtnNum
  put "1,000" into param1
  put "soldiers" & cr & "coming home" into param2
  answer value("foo(" & quote & param1 & quote & comma & \
      quote & param2 & quote & ")",btn "bar")
end mouseUp

If you'd like to use the value function with multi-line params, please
consider voting for bug 2904:
Allow 'value' to evaluate expressions containing returns like 'send'

-- Dick





More information about the use-livecode mailing list