back to Table of Contents


FileSelect$ (function)

Will display a interactive file selection dialog box. The dialog does use its own detached window but is aware of its parent program window, hence closing the parent window will close the FileSelect dialog too. The user may navigate through the file structure using the mouse or by directly typing/pasting content into the string fields. Optionally the filenames can be matched against a regular expression based name pattern to narrow down the displayed file lists, pattern matching doesn't affect drawer names.

Note that regular expressions are very experimental within the older (pre-2019) QB64 versions and therefore not enabled by default. If you wanna use regex matching, then you must explicitly enable it in file dev_framework\GuiAppFrame.h, but first carefully read the comments at the top of that file and then, if you're really sure, uncomment the #define GTREGEX line by removing the leading //.


SYNTAX:

filespec$ = FileSelect$ (winIcon$, winTitle$, opMode%, iniDir$, iniFile$)

INPUTS:

winIcon$ (STRING)

winTitle$ (STRING)

opMode% (INTEGER)

iniDir$ (STRING)

iniFile$ (STRING)


RESULT:

filespec$ (STRING)


MODE CONSTANTS:

fsmLOAD%

fsmSAVE%

fsmDIRS%


back to Table of Contents