Windows Phone 文本框输入为八进制数 [英] Windows phone textbox input as an octal number
本文介绍了Windows Phone 文本框输入为八进制数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以在 windows phone 7 中将文本框输入捕获为八进制数吗?
Can i capture the textbox input as an octal number in windows phone 7 ?
推荐答案
您可以将字符串转换为 int 使用:
You can covert string to int use:
int number = Convert.ToInt32("010", 8);
如果它抛出 FormatException
则无法转换数字.
if it throws FormatException
then number cannot be converted.
这篇关于Windows Phone 文本框输入为八进制数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文