字符串到十六进制 [英] String to Hex
问题描述
我有字符串15我需要表示为十六进制数字 - 即& H15
简单的我会想到但我找不到答案。
-Jerry
I have the string "15" which I need represented as a hex number - ie &H15
Simple I would have thought but I can''t find the answer.
-Jerry
推荐答案
9月13日上午10:04,Jerry Spence1 < jerry.spe ... @ somewhere.co.uk>
写道:
On Sep 13, 10:04 am, "Jerry Spence1" <jerry.spe...@somewhere.co.uk>
wrote:
我有字符串" 15"我需要表示为十六进制数字 - 即& H15
简单的我会想到但我找不到答案。
-Jerry
I have the string "15" which I need represented as a hex number - ie &H15
Simple I would have thought but I can''t find the answer.
-Jerry
这将是:
Dim int As Integer = Integer.Parse(" 15",
Globalization.NumberStyles.HexNumber)
如果我没记错的话
谢谢,
Seth Rowe
It would be:
Dim int As Integer = Integer.Parse("15",
Globalization.NumberStyles.HexNumber)
If I remember correctly
Thanks,
Seth Rowe
" rowe_newsgroups" < ro ******** @ yahoo.com在留言中写道
新闻:11 ********************** @ r34g2000hsd.googlegr oups.com ...
"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@r34g2000hsd.googlegr oups.com...
9月13日上午10:04,Jerry Spence1 < jerry.spe ... @ somewhere.co.uk>
写道:
On Sep 13, 10:04 am, "Jerry Spence1" <jerry.spe...@somewhere.co.uk>
wrote:
>我有字符串15 ;我需要表示为十六进制数字 - 即& H15
简单的我会想到但我找不到答案。
-Jerry
>I have the string "15" which I need represented as a hex number - ie &H15
Simple I would have thought but I can''t find the answer.
-Jerry
这将是:
Dim int As Integer = Integer.Parse(" 15",
Globalization.NumberStyles.HexNumber)
如果我没记错的话
谢谢,
Seth Rowe
It would be:
Dim int As Integer = Integer.Parse("15",
Globalization.NumberStyles.HexNumber)
If I remember correctly
Thanks,
Seth Rowe
将数字转换为21.我需要保留15.我已尝试使用& H15字符串开始
;并且玩弄它但似乎仍然无法实现它。
-Jerry
That converts the number to 21. I need to keep 15. I have tried starting
with a string of "&H15" and playing around with that but still can''t seem to
do it.
-Jerry
9月13日上午10点21分,Jerry Spence1 < jerry.spe ... @ somewhere.co.uk>
写道:
On Sep 13, 10:21 am, "Jerry Spence1" <jerry.spe...@somewhere.co.uk>
wrote:
" rowe_newsgroups" < rowe_em ... @ yahoo.com写了留言
新闻:11 ********************** @ r34g2000hsd.googlegr oups.com ...
"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message
news:11**********************@r34g2000hsd.googlegr oups.com...
9月13日上午10:04,Jerry Spence1 < jerry.spe ... @ somewhere.co.uk>
写道:
On Sep 13, 10:04 am, "Jerry Spence1" <jerry.spe...@somewhere.co.uk>
wrote:
我有字符串" 15"我需要表示为十六进制数 - 即& H15
I have the string "15" which I need represented as a hex number - ie &H15
简单我会想到但我找不到答案。
Simple I would have thought but I can''t find the answer.
-Jerry
-Jerry
它将是:
It would be:
Dim int As Integer = Integer.Parse(" 15",
Globalization.NumberStyles.HexNumber)
Dim int As Integer = Integer.Parse("15",
Globalization.NumberStyles.HexNumber)
如果我没记错的话
If I remember correctly
谢谢,
Thanks,
Seth Rowe
Seth Rowe
将数字转换为21我需要保持15.我已经尝试用一串& H15开始
。并且玩弄它但仍然看不到
这样做。
-Jerry
That converts the number to 21. I need to keep 15. I have tried starting
with a string of "&H15" and playing around with that but still can''t seem to
do it.
-Jerry
对不起,我显然误解了你要做的事情。
事实上 - 我仍然不知道你想做什么。
你能否尝试更详细地解释一下你究竟想要什么?b $ b做什么以及为什么?
谢谢,
>
Seth Rowe
Sorry, I apparently misunderstood what you are trying to do.
As a matter of fact - I still have no idea what you are trying to do.
Could you try explaining in more detail what exactly you are trying to
do and why?
Thanks,
Seth Rowe
这篇关于字符串到十六进制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!