Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

Re: How to format 0 as invisible?

$
0
0

Hi Johan,

 

Thanks a lot for your reply.

 

>> what the U_HOV field is supposed to tell the user

 

U_HOV is a UDF in SAP B1.

 

Numbers appear in this column as and when a user checks a checkbox. And these numbers indicate in which sequence the checkboxes were clicked: The fist tick will be 1, the 2nd will be 2, etc.

 

Once I have updated SAP B1, my program will sort the records by the U_HOV field in ascending order.

 

So, even if the user checks the checkboxes in any order, finally my program will sort in ascending order.

 

I have to anticipate one problem which may arise. If a user ticks a checkbox, and then realizes that he should not have done so, he can untick the checkbox. In such a case, a 0 should appear in UDF.

 

Of course, there will then be breaks in consecutivity. I am addressing this problem with some code.

 

But for aesthetic reasons, I don't want 0 to show. I want it to be invisible.

 

----------

I tried your suggestions:

(1) Use Nothing

     When I untick a checkbox, the number 20 appears in U_HOV. I have no idea where this 20 comes from?

 

(2) Use -1

     When I untick a checkbox, the number -1 appears in U_HOV

 

--------

 

I don't know if I can achieve what I want by simply modifying my line of code.

Any other method will be acceptable.

Maybe we can use a code that CLEARS the relevant cell? How to do this?

 

Best Regards

Leon Lai


Viewing all articles
Browse latest Browse all 8944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>