Chapter Contents |
Previous |
Next |
FILEDIALOG |
Category: | External File |
Syntax | |
Details | |
Examples | |
See Also |
Syntax |
rc=FILEDIALOG(dialog-type,filename<,default-file <,default-dir<,filter-1<. . . ,filter-11<,description-1 . . .<description-11>>>>>>); |
-1 | A user cancelled without selecting a file. |
0 | Either dialog-type is OPEN and the file exists,
or dialog-type is SAVEAS
and the file does not exist. |
1 | Dialog-type
is SAVEAS , the file exists, and the user wants
to replace the file. |
2 | Dialog-type
is SAVEAS , the file exists, and a user wants
to append to the file. |
Type: Numeric
'AGGREGATE'
'LIBRARY'
'OPEN'
'SAVEAS'
Type: Character
Note: This parameter is an update parameter. See Input, Output, and Update Parameters for more
information.
Type: Character
''
), the file that was
selected last is the default file.
Type: Character
''
), the directory that was selected last is the default directory.
Type: Character
Type: Character
Type: Character
Details |
Depending on the values of default-dir and filter, default-file may not be in the list of files displayed. Therefore, default-file will not be selected.
An error condition is produced if you supply a description for at least one filter but fail to supply a description for each specified filter.
Operating Environment Information: The formats of the files and filter parameters are all host specific. The UNIX and MicroSoft Windows platforms use all of the passed filters. The Macintosh platform ignores the filter argument. All other platforms use only the first filter that is passed.
Examples |
rc=filedialog('saveas',selfile,'autoexec.sas', '/sas','*.sas'); /* Process the selected file */ select(rc); when(0) put 'New file selected'; when(1) put 'REPLACE an existing file'; when(2) put 'APPEND to an existing file'; when(-1) put 'User pressed cancel'; otherwise put 'ERROR occurred'; end;
rc=filedialog('open',selfile,'','', '*.sas','*.html','*.gif','','','','','','','','', 'SAS Files','Web Pages','Images');
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.