【发布时间】:2014-03-30 13:19:30
【问题描述】:
我想转换字符,例如,
Dim Str as String = **Chr(198) & Chr(233) & "ÿ¤"**
现在我想将Str 转换回它的字符代码。
我正在使用此代码:
Dim Bt(Str.Length - 1) As Byte
For i = 0 To Bt.Length - 1
Bt(i) = Asc (Str(i)) ' Using the Asc() function
Next
有没有更好的方法来做到这一点?
【问题讨论】:
标签: .net arrays vb.net bytearray