RequestFiles$ ( [prompt$][,exts$][,defname$] )
Parameters
|
prompt$ (optional) - title text for the dialog; "" uses the standard title (default) exts$ (optional) - comma-separated file extensions to offer as filters, e.g. "bb,txt"; "" offers all files (default) defname$ (optional) - suggested file name and/or starting folder; "" (default) |
Description
|
Opens a file requester with multiple selection and returns the chosen paths, one per line. The returned string contains one absolute file path per line, separated by Chr(10). An empty string means that the requester was cancelled or no files were selected. The exts$ filter uses the same comma-separated groups and semicolon-separated extensions as RequestFile: "png;jpg,*" offers an images filter plus an all-files filter. Split the result to process each file: files$=RequestFiles("Add models","b3d;3ds;x;gltf;glb,*") start=1 While start<=Len(files) separator=Instr(files,Chr(10),start) If separator=0 Then file$=Mid(files,start) Else file$=Mid(files,start,separator-start) Print file If separator=0 Then Exit start=separator+1 Wend The dialog is modal, owned by your active GUI window, and posts begin/end-modal events ($2004/$2005) to the shared event queue, exactly like RequestFile. Requires Extended mode. See also: RequestFile, RequestDir, Proceed, Notify. |
Index