无法在WP VB.NET中找到正确,左侧和中间的字符串结尾 [英] Unable to finde string finctions like right, left and mid in WP VB.NET
本文介绍了无法在WP VB.NET中找到正确,左侧和中间的字符串结尾的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个Windows手机应用程序,需要一些 string 操作。但它仍然非常难 我为找到正确的代码,我也试过
Microsoft.Visualbasic
但没有任何内容。
让假设我有两个 string 变量
Dim var1 as String = 123456789
Dim var2 as 字符串
现在我正在尝试
var1 =(做一些 var )
我需要
var = 456
感谢 advance
我尝试过:
我正在尝试所有字符串函数,如format,substring,copyto等,但没有什么是有用的,
Microsoft.visualbasic没有这样的。
解决方案
尝试:
Dim var1 as String = 123456789
Dim var2 as 字符串 = var1.Substring( 3 , 3 跨度>)
I am developing a windows phone app which requires some string manipulation. but its still really hard for me to find proper code for that, I also tried
Microsoft.Visualbasic
but nothing there.
let suppose I have two string variables
Dim var1 as String="123456789"
Dim var2 as String
now I am trying
var1=(Do something with var)
I need
var=456
thanks in advance
What I have tried:
I am trying all string function like format, substring, copyto and others, but nothing is helpful,
Microsoft.visualbasic has nothing like this.
解决方案
Try:
Dim var1 as String="123456789" Dim var2 as String = var1.Substring(3, 3)
这篇关于无法在WP VB.NET中找到正确,左侧和中间的字符串结尾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文