I'm trying to force a four digit display of a hexadecimal number using:
This works if the resulting hex number is numeric, but for alphanumeric numbers it works strange. e.g.Code:something.text=format$(Hex(number),"0000")
4A yields 0000 <--- This is puzzling. Why only the "A" numbers?
4B yields 4B
4C yields 4C
...
4F yields 4F
I could pad with leading zeros, but maybe someone knows an easier way.
Thanks
Jon




Reply With Quote