|
Navigation: The Buzz > Operating System > FileDlg Default Directory > FileDlg Function |
![]() ![]()
|
Jun 12, 2006 104273
You can actually play a couple of different tricks with the FileDlg function.
For example, using the following expression:
FileDLG ('ACS Files (*.acs;*.alt)','c:\temp\*.acs;*.alt'&CHR (0)&'All Files
(*.*)'&CHR (0)&'*.*')
causes the dialog to open in the "c:\temp" directory with TWO types in the
"Files of type:" combo box: the first type is "ACS Files (*.acs;*.alt)" and,
when selected, displays only those files having file extensions "acs" OR "alt".
The second type listed is "All Files (*.*)" and, as the name implies, does not
filter files.
The trick is to "overload" the function's second argument with additional pairs
of arguments, each separated from the preceding arguments with CHR(0).
Steve Blank
Page url: http://www.magic-iug.com/MIUGWeb3/index.html?hm_filedlg_function.htm