Topic: dlgsavefile mask
I'm confused about how dlgsavefile is used in Simply Fortran. In my program, I have the following:
if(dlgsavefile(OutputFile,"*.csv","*.csv","Output Data File")) then
write(*,*) "Output Data File is: ",Trim(OutputFile)
write(*,*) "No output file selected."
When the dialog box opens, no CSV files are listed even though they exist in the folder. If I click the "All Files" drop-down, I see them. Also, I expected a new file created with the "*.csv" mask to be a CSV file, but it defaults to no file extension unless you're choosing a file from the folder.
dlgopenfile shows the CSV files per the "*.csv" mask, but I don't expect it was intended for typing a nonexistent file in.
Is this a bug in the dlgsavefile? I'm using Windows 7. Can I just use dlgopenfile for both opening existing files and either saving over existing files or creating a new file?