Purpose
Display
file selection dialog.
Synopsis
function XADchoosefile(openorsave:boolean):string
function XADchoosefile(openorsave:boolean, filetypes:string):string
Arguments
|
openorsave
|
Dialog type selection.
|
true
|
create an Open file dialog
|
|
false
|
create a Save file dialog
|
|
|
filetypes
|
File filters based on file extensions. See example below:
|
Return value
File name if selection was successful, otherwise an empty string.
Example
filename:=XADchoosefile(true,"My own type of files (*.myotf)|*.myotf"+
"|"+
"MPS files(*.mps)|*.mps"+
"|"+
"All Files (*.*)|*.*"+
"|")
Further information
This
is a convenience routine for displaying the standard Windows file
selection dialog. Pass true
as an argument to create an Open file dialog and false to create a Save file dialog. If the file selection was successful, the
returned string contains the file name. If not, the function returns
an empty string. The second form of the function allows use of filters based on the file extension.
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.