Some basic questions about fld tables

Edwin Gore edgore at shinra.com
Tue Jul 1 11:40:00 EDT 2003


Now that you have Richard's explaination of how to set up a field, here are the specific answers to you questions

>Hello!
>I have problems with Fields like Table.
>How is it possible to put text into cell 1/3 (row 1
>col 3)

put x into item 3 of line 1 of field "table"

>How is it possible to read something in a cell (the
>same by example)?

put item 3 of line 1 of field "table" into x 

>How is it possible to say "put "taratata" into the
>first row empty in the
>table"?
on mouseUp
-- go through the field looking for an empty row
Repeat with x = 1 to the number of lines in field "table"
-- if you find an empty row, put the word in it
if line x of field "table" is empty then 
put "taratata" into item 1 of line x of field "table"
exit MouseUp
end if
end repeat
-- if you made it through the whole field and didn't find 
-- an empty line, add a line and put the word in it
put return & "taratata" after field "table"
end mouseUp


>If you have one answer to all these questions or
>only to one, you are
>welcome!
>
>I have searched in all the doc, with the plugin,
>but nothing about that I
>think!
>
>Thank you
>Fran=E7ois
>
>--------------=20
>Fran=E7ois Cuneo
>Site Web d=E9di=E9 au Macintosh http://www.cuk.ch
>E-mail: francois.cuneo at cuk.ch
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolu
>tion



More information about the use-livecode mailing list