我如何使用Substring方法 [英] How do I employ the Substring method
本文介绍了我如何使用Substring方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从这个网站使用Substring方法:
http://msdn.microsoft.com/en-us/library/aa903372%28v=vs.71%29.aspx [ ^ ]
这有点模糊。
我有一个字符串:n =123456789
我想删除最后两位数字来获得:
n =1234567
我该怎么做?
解决方案
此链接 [ ^ ]应该给你一个更详细的解释。
更多的例子可以在这里找到 - V B.NET子串 [ ^ ]。
I want to employ the Substring method from this site:
http://msdn.microsoft.com/en-us/library/aa903372%28v=vs.71%29.aspx[^]
This was a little vague.
I have a string: n="123456789"
I want to delete the last two digits to get:
n="1234567"
How do I do that?
解决方案
This link[^] should give you a more detailed explanation.
More examples can be found here - VB.NET Substring[^].
这篇关于我如何使用Substring方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文