I recently stumbled upon a real gem in Quickwin: if you use compiler switch /fpscomp:filesfromcmd, then the statement OPEN (unit, FILE=' ') will bring up the windows file select dialog box for the user to search for and enter a file. This is far easier than using the API GetOpenFilename as described in one of the samples programs. I spen hours getting that to work--and here it is available with one line of code!
The documentation is almost nonexistent, nearly impossible to find, but it is mentioned under "fpscomp" (in the proverbial fine print).
I have two questions/requests about this feature:
1. Why does one need the switch fpscomp to obtain this behavior? Why couldn't it be standard in a Quickwin program?
2. The dialog that pops up has the default file mask of *.txt. Is there any way to control this? I had high hopes that FILE='*.DOC' (for example) might carry through to the dialog--but alas. Seems there should be some other way that is still easier than the API GetOpenFilename call.
Quickwin developers at Intel, take note!