Extracting from textbox

tk.unlimited

Active member
Joined
Apr 2, 2005
Messages
27
Programming Experience
1-3
Hey ALL!!
How do i extract the first three letters from text input into a textbox.
E.g Input Franky in a textbox.. Want to extract "Fra"

Thanks!!
 
VB.NET:
Expand Collapse Copy
Dim myExtraction As String = TextBox1.Text
TextBox2.Text = myExtraction.Substring(0, 3)
or you can pass those three letters to another variable in order to manipulate additionally with the same:
VB.NET:
Expand Collapse Copy
Dim mySecExtraction As String = myExtraction.Substring(0, 3)


Cheers ;)
 
Back
Top