Display Byte value with 3 digits and leading zeros
Imports System.Globalization
Imports System
Module Example
Public Sub Main()
Dim numbers() As Byte = { 0, 16, 104, 213 }
For Each number As Byte In numbers
' Display value with 3 digits and leading zeros.
Console.Write(number.ToString("D3") + " ")
Next
End Sub
End Module
Related examples in the same category