Skip to content

Std requesters requestfile

std:std.requesters.RequestFile

Function RequestFile:String( title:String,filter:String="",save:Bool=false,file:String="" )#

Activates a modal file requester dialog.

RequestFile activates a modal file requester dialog.

The optional filters string can either be a comma separated list of file extensions or, as in the following example, groups of extensions that begin with a "group:" label and are separated by a semicolon. For example:

"Image files:png,jpg;Audio files:was,ogg;All files:*"

The save parameter should be true to create a save-style requester, false to create a load-style requester.

The path parameter can be used to specify an initial file path.

Returns selected file path, or an empty string if dialog was cancelled.