locked
Help needed in explaining codes RRS feed

  • Question

  • Hi, is there anyone who can tell me what is the meaning of this code:


     

    Dim my_str As String = TextBox1.Text.Substring(2, 3)

    TextBox2.Text = Convert.ToInt16(my_str, 16)

    Tuesday, June 23, 2009 3:41 AM

Answers

  • Gene,

    This forum is for Microsoft Robotic's Developer Studio and as such, is not the right place to ask a generic programming question.

    However,

    You seem to have two textboxes on a form.  The first line takes a subset of the text in the first textbox starting at position 3 and for 3 characters and puts this subset into a variable.  The second line changes that text into the numeric equivalent then puts it into the second textbox.  The last step also converts the number back into text.

    Thanks,
    Dogulas
    • Marked as answer by Gene9956 Wednesday, June 24, 2009 5:46 AM
    Tuesday, June 23, 2009 12:12 PM