LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

table color does not reset

Solved!
Go to solution

My table (AVG SUM TABLE) is supposed to show entries less than zero in red. It has a small problem. The first time it works, but the second time the text color does not go back to black when I run it again.

It remembers the entries that were red from before. Based on my wiring below, the second time I run it, it should set the background color to light yellow, and the text to black, then perform the for loops.

BTW, I also used a flat sequence to force this order, but that didn't help.

 

Untitled.jpg

0 Kudos
Message 1 of 3
(2,359 Views)
Solution
Accepted by topic author murchak

Hi murchak,

 

from what can be seen in your picture you

- only set one cell to "light yellow" background: ActiveCell=(2; 2)

- then you set the first 3 rows to background "light green"

- then you set some cells, depending on their value, to red. (Btw. there's a special "<0" function in the comparison palette!)

 

There's no place where you set a black background for all cells!

Maybe you should try ActiveCell (-2; -2) instead?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,358 Views)

Thank you GerdW.

 

-2,-2 did the trick. that's what happens when coding is done at 2 AM. can't believe I didn't see that.

0 Kudos
Message 3 of 3
(2,355 Views)