A
Al Reid
How aboutRich Raffenetti said:How can one format an integer into a hex string with leading zeros?
Suppose an integer is 512 which in Hex is 200. I wish to print the 4-byte
integer as 0200 or even 0x0200. The HEX function doesn't create leading
zeros. The Format function (format(value,"X") doesn't create leading
zeros.
I believe there should be a simple way that doesn't involving measuring
and padding the string.
Hex(value).PadLeft(4, "0"c) ?