
Table Field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Table Field
Ah, but the idea of my script was JUST to colorise item 1 of row 1.
Re: Table Field
And... ? If you can color any other cell individually, then you can color any specific cell individually, I still don't get the problem.

-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Table Field
Well . . .
I wrote set the backGroundColor of item 1 of line 1 of fld "tf" to red so why did the script set ALL of the
items' backGroundColor to red?
Code: Select all
on mouseUp
put empty into fld "tf"
set the itemDelimiter to TAB
------
set the backGroundColor of item 1 of line 1 of fld "tf" to red
put "be" into item 2 of line 2 of fld "tf"
put "completely" into item 3 of line 3 of fld "tf"
put "bonkers" into item 4 of line 4 of fld "tf"
put "!!!!!!!!!!" into item 5 of line 5 of fld "tf"
end mouseUp
items' backGroundColor to red?
Re: Table Field
BackgroundColor needs a character reference.
Code: Select all
set the backGroundColor of char 1 to -1 of item 1 of line 1 of fld "tf" to red
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Table Field
Thanks.BackgroundColor needs a character reference.
