Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
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.
Posted
Updated 14-Jul-16 23:24pm

1 solution

Try:
VB
Dim var1 as String="123456789"
Dim var2 as String = var1.Substring(3, 3)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900