Saturday 17 September 2011

Byte

Convert the part of a Byte array to a String with the ToString method:
Example of some BitConverter.ToString( ) method overloads.
Imports System
Imports Microsoft.VisualBasic

Module BytesToStringDemo
    Sub Main( )
        Dim arrayOne as Byte( ) _
              0,   0,   0,   0128,  63,   0,   0112,  65, _
              0255127,  71,   0,   0128,  59,   0,   0, _
              0,   0,   0192255,   0,   0128255,   0, _
              0128127 }

        Console.WriteLine(BitConverter.ToStringarrayOne))
    End Sub 
End Modul

No comments:

Post a Comment