|
查看: 1079|回复: 3
|
VB6 conversion (str -> hex -> str)
[复制链接]
|
|
|
如何把string变成hexadecimal,然后从hexadecimal变回string呢?
algo或coding是怎样的呢?谢谢 |
|
|
|
|
|
|
|
|
|
|
发表于 14-9-2006 01:18 PM
|
显示全部楼层
Using English : This function is let u convert from string to hexanumber and hexanumber to string. Note : This method is suitable for string which is 0-F so if other than that u need to figure out the algorithm.
Dim convert As String = ""
Dim temp As String = ""
Dim myInteger As ULong
convert = TextBox1.Text
myInteger = ULong.Parse(convert, Globalization.NumberStyles.AllowHexSpecifier)
temp = Hex(myInteger)
MsgBox(temp) |
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 15-9-2006 03:13 AM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 29-9-2006 09:21 AM
|
显示全部楼层
原帖由 devilgray 于 15-9-2006 03:13 AM 发表
0-F而已啊。。。G-Z就不能咯?
HEX 只是从 0 到 F 而已  |
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|