1、字符串与字节数组的转换
Dim mByte() As Byte '字节数组
Dim str As String '字符串
str = "中国CSDN"
'字符串->字节数组
mByte = StrConv(str,vbFromUnicode)
'字节数组->字符串
str = StrConv(mByte,vbUnicode)
1、字符串与字节数组的转换
Dim mByte() As Byte '字节数组
Dim str As String '字符串
str = "中国CSDN"
'字符串->字节数组
mByte = StrConv(str,vbFromUnicode)
'字节数组->字符串
str = StrConv(mByte,vbUnicode)