GLBasic User Manual

Main sections

FILEREQUEST$()

file$=FILEREQUEST$(open#, filter$)



Closes the current window and displays a file request dialog that allows the user to seek for a filename.

open: TRUE - Open file dialog / FALSE - Save file dialog
filter$: A user defined filter for the filter box. Seperated by '|' (or-sign)
Examples:
"Text |*.txt;*.asc"
"Text *.txt|*.txt|All Files *.*|*.*"

Sample:
 
file$=FILEREQUEST$(TRUE, "Text|*.txt|All|*.*")
PRINT file$, 0, 100
SHOWSCREEN
MOUSEWAIT

See also...