filenamebox

Open a dialog can be selected a file.

filenamebox <title> [<dialogtype> [<initialdir>]]

Parameters

string <title>
The title of dialog box
integer <dialogtype> (optional default=zero)
Specifies the type of dialog box.
If this parameter is zero, creates [Open] dialog box.
If this parameter is nonzero, creates [Save] dialog box.
string <initialdir> (optional default="")
The initial directory of the dialog box can be specified.
When the empty string is specified, the file panel opens its usual folder (e.g. the folder used last time).

Return Value

System variable <result>
If the user specifies a file name and clicks OK button, set to nonzero. The file name is stored in "inputstr."
If the user cancels or closes the dialog, set to zero.
System variable <inputstr>
The file name entered by the user

Example

connect '/C=1'
filenamebox 'File selection' 0
if result<>0 then
	messagebox inputstr 'title' 0
	sendfile inputstr 1
endif