title: VB6 remove text from string until character
body: <p>I'm making a program in VB6 for sorting my files. With a few buttons I can choose a category. A lot of these files have a number in front of the filename</p>
  
  <p>Example: <code>1111-FILENAME</code> or <code>12-FILENAME</code></p>
  
  <p>I have been trying to use the split function:</p>
  
  <pre><code>filename.Text = Split(filename.Text, "-")(1)
  </code></pre>
  
  <p>But that doesn't work if there are more <code>-</code> characters in the filename. It should start from the left looking at a <code>-</code>, and then stop and delete those characters including <code>-</code>. So I only have <code>FILENAME</code> left.</p>