p$ = PathRequest(title$[, t])
p$ = PathRequest(title$[, mode, defdir$])
title$
argument. This can also be an empty string ("") to
use the default title.
PathRequest()
returns the user's path selection or "" if the user
has cancelled the requester.
PathRequest()
supports several optional arguments. Before Hollywood 9.0, those
had to be passed as optional parameters (see above). Since Hollywood 9.0,
however, it is recommended to use the new syntax, which has a single optional
table argument that can be used to pass one or more optional arguments to
PathRequest()
.
The following table fields are recognized by this function:
Mode:
Mode
table tag allows you to specify the mode of the path requester. This
can either be #REQ_SAVEMODE
for save mode or #REQ_NORMAL
for normal mode.
Defaults to #REQ_NORMAL
.
Path:
X:
Y:
Width:
Height:
p$ = PathRequest("Select a path") If p$ = "" Print("Requester cancelled!") Else Print("Your selection: ") Print(p$) EndIfAsk the user for a path and print its name.