I have been using this function for many years, but now have run across a potential snag as it interfaces to my SW.
Specifically, I have a 'Save' function that allows the user to save settings into a file. The user may have loaded a file of settings previously. If I provide this file name to the function, but the user clicks the 'Cancel' button (or close the dialog using the 'X'), there is no method by which to detect if the user has cancelled. If the user has specified the same file, then I ask if the user wishes to 'Overwrite', but since they clicked 'Cancel' this is confusing. It was to me the first time I experienced it! Also, if the user had inadvertently typed a new file name, but decided to 'Cancel', it would then be used as a valid file and 'Saved'. No way to detect what the user has done.
Perhaps a CLEARWIN_INFO@() parameter that would let you know if the user cancelled the file operation? Or, a LOGICAL FUNCTION version of this; FALSE=user cancelled or other file naming problem (there are a lot of possibilities).
Bill