title: Handling multiple filenames from FileOpenDialog()
body: <p>I am writing a picture editing program and am using the below snippet to choose the files:</p>
  
  <pre><code>$var = FileOpenDialog("",@DesktopDir,"Images (*.jpg;*.bmp;*.png)",1+4)
  $var = StringReplace($var, "|", @CRLF)
  </code></pre>
  
  <p>When I select multiple files all the file names are stored in <code>$var</code> separated by the <code>|</code> symbol. I replace that symbol with a newline character. But I need to run the program for all the filenames and I can't figure out how to separate the various filenames from the variable. So my programs stops if I select multiple files.</p>