标签: vb.net indexing
换句话说,我如何索引字符串。
Dim foo as String = "Foobar" GetChar(foo, 2+3)
将返回'r',但我希望它返回字符2到3; 'OB'
答案 0 :(得分:2)
试试这个......
Dim s As String = foo.Substring(2, 2)