VBA 使用StrConv将单字节字符的字节数组转换为字符串
示例
'Declare an array of bytes, assign single-byte character codes, and convert to a stringDim singleByteChars(4) As Byte
singleByteChars(0) = 72
singleByteChars(1) = 101
singleByteChars(2) = 108
singleByteChars(3) = 108
singleByteChars(4) = 111
Dim stringFromSingleByteChars As String
stringFromSingleByteChars = StrConv(singleByteChars, vbUnicode)
'stringFromSingleByteChars = "Hello"
以上是 VBA 使用StrConv将单字节字符的字节数组转换为字符串 的全部内容, 来源链接: utcz.com/z/348714.html