Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / GUIFILE for directories

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. GUIFILE for directories
#13625
Posted by: Michael S 2012-11-21 02:19:37 Last edited by: Michael S 2012-11-21 02:20:21 (Total edited 1 time)
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
/* Start in a specific directory */
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 on
InitialDir 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 ?
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥1,160.00 ·
 
 
¥1,450.00 ·
 
 
¥1,290.00 ·
 
 
¥289.00 ·
 
 
¥490.00 ·
 
 
¥288.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0