Re: First problems...datagrid
Posted: Mon Oct 03, 2011 1:02 pm
Hi guys,
I would like to use textcolor for text in specific row in datagrid. But there are some problem. Here is my code:
set the dgText of group "dbGrid1" to tTemp
lock screen
set the dgText of group "dbGrid1" to tTemp
put the number of lines of tTemp into tCount
repeat with x = 1 to tCount
put item 9 of line x of tTemp into tOutcome
put item 16 of line x of tTemp into tArchived
if (tOutcome = "Pending") OR (tOutcome = "Awaiting Evidence") then
set the textcolor of item 1 to 11 of line x of group "dbGrid" to blue
end if
I know I may have some error. Could you guys please give me the solutions
Thanks in advance
Regards,
Quang
I would like to use textcolor for text in specific row in datagrid. But there are some problem. Here is my code:
set the dgText of group "dbGrid1" to tTemp
lock screen
set the dgText of group "dbGrid1" to tTemp
put the number of lines of tTemp into tCount
repeat with x = 1 to tCount
put item 9 of line x of tTemp into tOutcome
put item 16 of line x of tTemp into tArchived
if (tOutcome = "Pending") OR (tOutcome = "Awaiting Evidence") then
set the textcolor of item 1 to 11 of line x of group "dbGrid" to blue
end if
I know I may have some error. Could you guys please give me the solutions
Thanks in advance
Regards,
Quang