Padding hex values

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

I want to pad out a hex value with leading zeros, e.g. I
don't want 7B I do want 0000007B. The best I can do is
Return New String("0"c, 8 - Len("7B")) & "7B". Can anyone
do better?
 
Back
Top