Problems with the DO command

Jan Schenkel janschenkel at yahoo.com
Wed Aug 7 06:26:01 EDT 2002


Hi Ian,

Try this:
  processmytable "put mytable[tx,ty] into fld" && \
    quote & "mydisplay" & quote

Hope it works,

Jan Schenkel.

"As we grow older, we grow both wiser and more foolish
at the same time."  (De Rochefoucald)

--- Ian McKnight <ianmck at macunlimited.net> wrote:
> Hi Dar
> 
> Thanks for your input
> 
> My stack consists of a single card containing a
> button, with the following
> script, and a field called mydisplay
>
--------------------------------------------------------
> on mouseup
> processmytable "put empty into mytable[tx,ty]"
> processmytable "put tx*ty&comma into mytable[tx,ty]"
> processmytable "put mytable[tx,ty] into fld
> "mydisplay""
> end mouseup
> 
> on processMyTable tcommand
> global mytable
>   repeat with ty = 1 to 10
>     repeat with tx = 1 to 10
>       do tcommand
>     end repeat
>   end repeat
> end processMyTable
>
--------------------------------------------------------
> 
> The first and second calls to processmytable work
> correctly, the last call
> does not. Revolution believes the statement ends at
> the 2nd quote mark.
> 
> Changing the statement to
> 
> processmytable "put mytable[tx,ty] into fld quote&
> mydisplay &quote"
> 
> doesn't work either -- an error message concerning
> the &
> 
> It seems that you can't have a reference to an
> actual field in a statement
> given to a do command :(
> 
> Thanks again
> 
> Ian McKnight
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
>
http://lists.runrev.com/mailman/listinfo/use-revolution


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com



More information about the use-livecode mailing list