VBA 将多字节字符的字节数组隐式转换为字符串
示例
'Declare an array of bytes, assign multi-byte character codes, and convert to a stringDim multiByteChars(9) As Byte
multiByteChars(0) = 87
multiByteChars(1) = 0
multiByteChars(2) = 111
multiByteChars(3) = 0
multiByteChars(4) = 114
multiByteChars(5) = 0
multiByteChars(6) = 108
multiByteChars(7) = 0
multiByteChars(8) = 100
multiByteChars(9) = 0
Dim stringFromMultiByteChars As String
stringFromMultiByteChars = multiByteChars
'stringFromMultiByteChars = "World"
以上是 VBA 将多字节字符的字节数组隐式转换为字符串 的全部内容, 来源链接: utcz.com/z/345231.html