title: How do I use VB6 InStr IntStRev And Mid in c#
body: <p>I was using VB6 for a project later I switched to c# I have a function in my VB6 code I wanna use in my C# Project.</p>
  
  <p>String.Substring maybe could do this.</p>
  
  <p>Here is my VB6 Code.</p>
  
  <pre><code>position = InStr(1, strout, "4000072")
  
  If position &gt; 0 Then
      position2 = InStrRev(strout, "0000", position)
      strout = Mid$(strout, position2 - 512, 512)
  End If
  </code></pre>