title: How to pass multiple file extensions to TDirectory.GetFiles?
body: <p><code>TDirectory.GetFiles</code> has a parameter called <a href="http://docwiki.embarcadero.com/Libraries/en/System.IOUtils.TDirectory.GetFiles"><code>SearchPattern</code></a>. Embarcadero's documentation says</p>
  
  <blockquote>
    <p>The mask used when matching file names (for example, "*.exe" matches all the executable files).   </p>
  </blockquote>
  
  <p>However, I want to pass multiple file types. I get those types from a <code>FilterComboBox.Mask</code>. So, it is a string that looks like <code>'*.txt;*.rtf;*.doc'</code>. </p>
  
  <p>I have tried to pass that string directly to <code>GetFiles</code> and it doesn't work. Do I have to parse it, break it into pieces and feed every individual piece to <code>GetFiles</code>?</p>