To convert a byte array to a string, you can simply assign it to the string variable. For example, the following code correctly produces the output ABC. Note that the byte array is in Unicode format. You can use the StrConv function (VB) to convert to and from Unicode.


Dim arrByte(5) as Byte, str as string
arrByte(0) = 65
arrByte(1) = 0
arrByte(2) = 66
arrByte(3) = 0
arrByte(4) = 67
arrByte(5) = 0
str = arrByte
MsgBox str