Page 1 of 1
Table Fields
Posted: Sat Oct 27, 2007 6:37 pm
by churchken
Hi,
I can't seem to find any reference documentation on using table fields without data bases.
Can individual cells of a table field be referenced to manipulate contents, background color, and text color?
Thanks for any help in pointing me in the right direction.
Ken
Posted: Sun Oct 28, 2007 4:36 pm
by Lynn P.
Hi Ken ~
You can refer to each cell by using "line" and "item" after setting the itemdelimitor to TAB, since table fields are plain old fields separated by lines and using tabs.
To change the text color a cell (1,1) for example:
set the itemdel to TAB
set the textColor of item 1 of line 1 of fld "myTable" to red
To change the contents of a cell (2,3):
set the itemdel to TAB
put "34.95" into item 2 of line 3 of fld "myTable"
I'm not sure about changing the background color of individual cells or if it's possible as I've never tried it, but I'm sure someone has and will come along with that info.
Thanks, Lynn
Posted: Sun Oct 28, 2007 7:31 pm
by churchken
Lynn,
Thanks a bunch for the tips --
I tried to find info in the documentation, searched the user guide and the forum too, but did not find anything. The doc's said cells are referred to by row and column, (separated by a comma) but I did not find a way to make that work either.
I did find the line and "word" approach to work, but only if there were already data in each "word" before the target cell.
Again, thanks for your assistance.