get character

hi

for example;

textbox1.text=29.06.2006

I want to get forth and fifth character than I want to write to label1.text

result must be :label1.text=06

How can I do




Answer this question

get character

  • Alexander Gehres

    Label1.Text = TextBox1.Text.Substring(3, 2)
    Or
    Label1.Text = Mid(TextBox1.Text, 4, 2)
    Hope this helps a bit...


  • get character