Upgrade VBA StrConv Byte Array vbUnicode ToString

I'm new to msdn forums and hope that this question is posted in the correct group.

How can I upgrade the following VBA code to VB.NET

StrConv(ByteArray, vbUnicode)

Thanks, Simon




Answer this question

Upgrade VBA StrConv Byte Array vbUnicode ToString

  • DKB

    The above post didn't do it for me. After some research, I found the exact equivalent of vb6's

    StrConv(ByteArray, vbUnicode)

    was this in vb.net

    System.Text.Encoding.GetEncoding(1252).GetString(ByteArray)


  • CharissaJB123

    I would like to thank you for this finding , you have saved my 8 man days of work !!

    Thanks a lot .

    Randhir



  • Fusion54

    Dim theString as String = System.Text.Encoding.Unicode.GetString(ByteArray)

  • Upgrade VBA StrConv Byte Array vbUnicode ToString