From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional formatting for textlist?

Solved!
Go to solution

Hi Sarry,

 

I think you put the number in quotes which is causing this behavior.

Just leave the quotes and do something like this:

if Cell.Value <= 2 then
     Cell.Font.Color.SetRGBColor(RGB(0, 255, 0))  
else
     Cell.Font.Color.SetRGBColor(RGB(255, 0, 0))  
end if

Regards

Christian

Christian
CLA, CTA, CLED
0 Kudos
Message 11 of 13
(1,538 Views)

Hi,

 

you are right I have used quotes but without quotes it is not functioning at all and giving me the color Red even though It shouldn't be.

 

Regards

0 Kudos
Message 12 of 13
(1,530 Views)

Hi,

 

I would also like to mention that all the values which are present in a table are obtained using the str command. Can it make a diiference?

 

Regards

Sarry

0 Kudos
Message 13 of 13
(1,521 Views)