VB.NET - Code Samples - Zero Fill a number

Synopsis:

VB.NET ToString function provides a less complex method for formatting than string.format. A zero fill example is shown below.

The Code:

	Dim i as int32 = 5
	Dim Output as string
	Output = i.ToString("0000")
About this page: