dxRequestFile$(title$,default_folder$,filter$)

Parameters

title$ = title of window to open
default_folder$ = default folder where the file requester will open
filter$ = file filter. Leave this parameter empty to accept all filetypes. Otherwize you can choose the filetypes you wish to accept in the filetype by creating a list of these filetpyes. The syntax of this is the text descripton that will be displayed in the file requester followed by the file filter/s (separated by a semi-colon) this option is to have. Each file filter is to be separated by an or symbol '|'

Example: filter$="all video files|*.divx;*.mpg;*.avi;*.mp4;*.mkv|mpg files|*.mpg|avi files|*.avi|mp4 files|*.mp4|mkv files|*.mkv|divx files|*.divx"

A file requester opened with the above filter will give you will have 6 options...

Option 1: all video files|*.divx;*.mpg;*.avi;*.mp4;*.mkv -> All video filetypes are shown

Option 2: mpg files|*.mpg -> Only mpg filetypes are shown

Option 3: avi files|*.avi -> Only avi filetypes are shown

Option 4: mp4 files|*.mp4 -> Only mp4 filetypes are shown

Option 5: mkv files|*.mkv -> Only mkv filetypes are shown

Option 6: divx files|*.divx -> Only divx filetypes are shown


Description

opens a file requester and returns the full path of a file chosen by the user or 0 if the user cancelled.