Dim num As Integer = 10
Dim id As String = num.ToString.PadLeft(5, "0")
' id = 00010
Dim num As Integer = 10
Dim id As String = Microsoft.VisualBasic.Right("00001", 5)
' id = 00010
Copyright ©
Coding Secrets in VB.NET | Powered by Blogger
Design by WP Lift | Blogger Template by NewBloggerThemes.com