LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i hide a value of a numeric cell?

I create a big table including numeric cells with the UIR-Library. Some cells should have a BLANK " " instead of ZERO "0". The table should be able to sort and scroll.
I try to solve the problem in changing the format to "String", but the sort procedure give a different result for a string than for a numeric!
0 Kudos
Message 1 of 3
(3,085 Views)
You could try to write the text in this cell with the same color as the background: this will "hide" the value of the cell. This could be a problem while sorting 'cause the attributes may not be moved together with the cell values (I don't know if this happens but can be tested easily). In case, you will have to adjust the individual cell attributes after sorting the table.

In order to skip the "hided" cells while editing the table (if necessary) you must set those cells as Indicator, so that the cursor doesn't remains on them.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,085 Views)
Thank you Roberto,
I test your idea and the attributes moved together while sorting!
A additional problem is while the user is checking a cell or a column cause in visibility of the hidden value.

The cells are set as Indicator. It is not necessary to edit the values.

Georg
0 Kudos
Message 3 of 3
(3,085 Views)