SelectFiles

Function Name dcl-SelectFiles
Syntax   (dcl-SelectFiles {FileTypes [as List of Strings]} {Title [as String]} {DefaultDirectory [as String]})
Return Type String

This function prompts the user to select one or more files. The optional FileTypes argument can specify a list of allowed file types, with each file type formatted as a string of the form "TypeName|Filter" (TypeName is the file type as displayed in the dropdown file type selection list; Filter is the wildcard specification for files of that type). The optional Title argument specifies a custom title for the file dialog. If DefaultDirectory is specified, the dialog opens in that directory. The function returns a list of selected files (including their complete path), or NIL if the dialog is cancelled.