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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top