Passing flds as Parameters?
Arthur Urban
aturban at qwest.net
Tue Sep 7 00:58:34 EDT 2004
> > How can I pass a fld in a send command and still retain the
> multiple
> > lines of that fld? I'm trying the following:
> >
> > send "hander" && fld "f" to btn "b"
> >
> > This only sends line 1 of the fld. If I try:
> >
> > send "handler" && quote & fld "f" & quote to btn "b"
> >
> > then I get all the lines but unwanted quote marks. How do others
> > handle this situation?
>
> Arthur, I set up two fields and two buttons. In the first
> field I put a bunch of text (multiple lines).
>
> The script of btn 1 was:
>
> on mouseUp
> send "doIt" && fld 1 to btn 2
> end mouseUp
>
> The script of btn 2 was:
>
> on DoIt pWhat
> put pWhat into fld 2
> end DoIt
>
> I then clicked button 1 and my text appeared in fld 2,
> multiple lines and all. Perhaps it's something else?
While I can't fix my problem, I have narrowed it down to having commas in
the source data. I suspect the send command is truncating my data at the
first comma it finds expecting further parameters. Got any ideas? Seems
rather absurd that I would have to "escape" all my commas and then reinstate
them.
More information about the use-livecode
mailing list