|
-
Apr 20th, 2006, 07:34 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] number format
Hi,
I want to use a diferent number format. I want to keep the zeros in front of a number, for instance:
00,01,02,03,04,05,06,....09,10,11
I know I could use a conditional if, if number less than 10, then "0" + number.
Is there another way of doing this?
Using sth like, I´ve tried many things but no luck.
Dim sno As String
Dim num As Integer
num = 1
txtsno.Text = num.ToString("##")
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|