Mega Code Archive

 
Categories / VB.Net / Data Types
 

Display byte value with four hexadecimal digits

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            Console.WriteLine(number.ToString("X4"))         Next       End Sub End Module