Based on the docs, I'm trying to use GUIFILE for directories and get it to open in a specific directory. My code is as follows:-
LIBRARY rexxgui
guierr = "SYNTAX"
guiheading = 1
fn = 'h:\a_ms_rexxcode\'
filename = fn
DO
err = guifile('filename', 'BROWSE|ENTRY', 'This is the title', , fn)
CATCH SYNTAX
RETURN ""
END
SAY 'filename = 'filename
Reading the docs is a bit confusing. I quote
If opening the Directory dialog instead, then NameVar contains the directory that is initially selected when the dialog opens, and where the chosen directory is returned. and further onInitialDir is the initial directory where the File dialog opens. If omitted, then the dialog opens in the current directory. For the Directory dialog, InitialDir is the directory initially placed into the 'New Folder' ENTRY. If omitted, then the 'New Folder' ENTRY is blank. I've tried all the variations I can think of, but to no avail. What am I missing ? |