I’m populating a bunch of labels with integer values and would like the label to be blank if the value is 0. To avoid a bazillion If statements I was hoping that there was a Unicode number format pattern that would handle this for me, but I haven’t found anything that works. Anyone know if this is possible?
label.text = if( thevalue = 0,"", thevalue.totext)
You could also create a method to do this for you which returns a Text object and just call it inline.
label.Text = Format(thevalue, "0; -0;")
Doesn’t really have anything to do with Unicode, but it works (at least in the old framework).