vb.net中的字符串处理 [英] string manipultaion in vb.net
本文介绍了vb.net中的字符串处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,我有一个字符串,它的字符串格式是这样的
''01/08/201100000001000134625SEBASTIN''
我只需要从abouve语句中取出一个字符,就意味着我要单独分配SEBASTIN到另一个字符串中,
请给我一些示例代码
hi all , i have string that string format is like this
''01/08/201100000001000134625SEBASTIN''
i need take only character from abouve statement, i meant that SEBASTIN alone i want to assign into another string,
please give me some sample code
推荐答案
查看此链接: ^ ]
非常简单,您可以使用SubString Function返回字符串的子部分.
See this link : http://msdn.microsoft.com/en-us/library/ms256054(v=vs.80).aspx[^]
It''s very simple you can use SubString Function which returns sub part of the string.
Dim S As String = "01/08/201100000001000134625SEBASTIN"
MessageBox.Show(S.SubString(26))
这篇关于vb.net中的字符串处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文