Home
Products
Community
Manuals
Contact
Login or Signup

BlitzPlus Docs -> GUI - A-Z -> R -> RequestFile

RequestFile$( [title$[,exts$[,save[,defname$]]]] )

Parameters:

title$ - the title for the file requester
ext$ - a comma separated list of allowed file extensions
save - an optional flag to indicate whether the file is for saving or opening.
defname$ - the default filename (or directory) to use when the requester opens.

Description:

Prompts the user for a file and returns the selected filename.

If no file was selected, an empty string is returned.

The optional save flags defaults to false.

Note: you can improve the requester by the use of the ";" separator in the exts$ parameter. See the example below.

See also: RequestDir.

Example:

filename$ = RequestFile("Select a filename to save as","png;*.jpg;*.bmp,*",True,"default.png")

success = SaveImage(myImage, filename$)
If success Then Print "Image Saved" 

Comments

None.

BlitzPlus Manual Forum

Blitz3D Equivalent Command