title: Substring Method in VB.Net
body: <p>I have Textboxes Lines:</p>
  <pre><code>{ LstScan = 1,100, DrwR2 = 0000000043 }
  { LstScan = 2,200, DrwR2 = 0000000041 }
  { LstScan = 3,300, DrwR2 = 0000000037 }
  </code></pre>
  <p>I should display:</p>
  <pre><code>1,100
  2,200
  3,300
  </code></pre>
  <p>this is a code that I can't bring to a working stage.</p>
  <pre><code> Dim data As String = TextBox1.Lines(0)
      ' Part 1: get the index of a separator with IndexOf.
      Dim separator As String = &quot;{ LstScan =&quot;
      Dim separatorIndex = data.IndexOf(separator)
      ' Part 2: see if separator exists.
      ' ... Get the following part with Substring.
      If separatorIndex &gt;= 0 Then
          Dim value As String = data.Substring(separatorIndex + separator.Length)
          TextBox2.AppendText(vbCrLf &amp; value)
      End If
  </code></pre>
  <p>Display as follows:</p>
  <pre><code>1,100, DrwR2 = 0000000043 }
  </code></pre>