I just tested in Magic v7.11h and that syntax works for me.
Make sure that the translation for %DEFAULT_DIR% includes a
trailing backslash, as in 'C:\SomeDir\'.
Steve Blank
Tip: If you want to include more than one type in the Open
File dialog's 'Files of type' combo box, and filter accordingly,
use the following syntax:
FILEDLG ('My Files (*.tec)','%DEFAULT_DIR%*.tec'&CHR (0)&'All Files (*.*)'&CHR
(0)&'*.*')
This example allows the user to select 'All Files (*.*)' in the
combo box and, when they do, all files will be displayed.
At 01:04 PM 6/30/2003, you wrote:
>Hi group,
>
>Si there a way to start looking in a predefined directory for certain
>filetypes *.tec when using the FILEDLG function? If so, what is the correct
>syntax?
>
>I've tried FILEDLG('.tec','%DEFAULT_DIR%*.tec'), and although it brings me
>to the right directory, I couldnt get to display the *.tec files
>When I remove the logical name , it displays the *.tec files but by default
>goes to another directory.
>
>Thanks
>C.
----------------------------
Steven G. Blank
Salt Lake City, Utah USA
----------------------------