calling a remote function..

Chipp Walters chipp at chipp.com
Fri Jan 19 10:50:31 EST 2007


Ding ding. You win the prize.

answer value("foo(" & q(param1) & comma & q(param2) & ")", btn "bar")

works. I had tried something similar:

answer value("foo(" & q(param1) , q(param2) & ")", btn "bar")
but couldn't get it to compile. I'm just used to the compiler not having to
be explicitly told to concatenate comma delimited items.

IOW, I'm used to:
put tLeft,tTop,tRight,tBot into tRect
and just assumed it would still work. My bad. Thanks Mark!!!

-Chipp

On 1/19/07, Mark Smith <mark at maseurope.net> wrote:
>
> Ah, I see. How about:
>
> answer value("foo(" & quote & p1 & quote & comma & p2 & ")",btn "bar")
>
> admittedly, this is going to be unwieldy if all your params might
> contain quotes, so then perhaps you need to use Ken Rays "q" function:
>
> answer value("foo(" & q(p1) & comma & q(p2) & ")", btn "bar")
>
> Best,
>
> Mark
>
> On 19 Jan 2007, at 14:35, Chipp Walters wrote:
>
> > Mark,
> > That's close, but still no cigar. Because Param1 has a comma in it, it
> > thinks it's two params. IOW, the answer is "1" & cr & "000". The
> > "soldiers"
> > is left behind :-(
> >
> > Any other ideas?
> >
> > -Chipp
> >
> > On 1/19/07, Mark Smith <mark at maseurope.net> wrote:
> >>
> >> Chipp, this seems to work for me:
> >>
> >>   answer value("foo(" & param1 & comma & param2 & ")",btn "bar")
> >>
> >> Though you seem to have "answer" in both button scripts...
> >
> >
> > Yeah, I know, but it doesn't matter.
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>



More information about the use-livecode mailing list