Learn how to a build a cloud-first strategyRegister Now


Putting zeros infront of integer value

Posted on 2006-04-25
Medium Priority
Last Modified: 2010-04-23
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
Question by:jaxrpc
1 Comment
LVL 10

Accepted Solution

bchoor earned 2000 total points
ID: 16540218
Dim Val As Integer = 80
Dim Str As String = Val.ToString("00000")


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question