Hi there.
I'm having trouble with the Open File Dialog function. I can call it, and it returns a variable for the file, but if I put anything into the filter string, I get nothing in the directory that I'm viewing, apart from folders. The help file seems a bit brief and there seems to be no example.
This is what it says in the help file...
Quote: "OPEN FILE DIALOG
Displays a standard Windows open file dialog box. The "Dir$" parameter specifies the directory that the dialog box will display. The "Filter$" parameter can be set to control which file types are display. The "Title$" parameter sets the window title of the dialog box. The string returned is the name of the selected file.
SYNTAX
return string = OPEN FILE DIALOG( Dir$, Filter$, Title$ )
"
However, I don't know
exactly what to put into the filter. I've tryed "sav", ".sav", "*.sav", "(*.sav)" and so on, but no luck. If I leave the filter string blank, it shows all files, and the file type box is blank, but if I add anything to the filter, I get a strange list of strings.
If I run it in the IDE, I get something like in picture on the left (attatched). If I compile it and run the EXE, I get some of the variables that are lying elsewhere in my program (see right part of picture)!
It's probably me who's gone wrong somewhere, but I wish I could help myself. I'm sorry to bother anyone, and thank you very much for reading this far.