I am writing a picture editing program and am using the below snippet to choose the files:
$var = FileOpenDialog("",@DesktopDir,"Images (*.jpg;*.bmp;*.png)",1+4)
$var = StringReplace($var, "|", @CRLF)
When I select multiple files all the file names are stored in $var
separated by the |
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.