vb.net
Dim stext as string ="1A" Dim stext1 as string ="A1" Dim sout,sout1 As String sout= String.Format("0000", stext ) sout1 = String.Format("0000", stext1 )
stext = 0000 stext1= 0000
stext=001A stext1=00A1
sout = "00" + stext; sout1 = "00" + stext1;
Dim yourNumber as Int32 = 5 yourNumber.ToString("D2") '= "05"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)