Putting zeros infront of integer value

Hi, How do i do this in vb.net? I need a value to be exactly in 5 digits....like for the value 1 it will be 00001 and for value 100 it will be 00100  and for value 8000 it will be 08000..... it is like the %05d in C. thanks
jaxrpcAsked:
Who is Participating?
 
bchoorCommented:
Dim Val As Integer = 80
Dim Str As String = Val.ToString("00000")

HTH
~BC
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.