Name
PathRequest -- pop up a path requester (V2.0)
Synopsis
p$ = PathRequest(title$[, mode, defdir$])
Function
This function pops up a path requester that allows the user to select a path. You can specify the title of the requester by setting the title$ argument. The optional mode argument allows you to put the requester in save mode if you specify #REQ_SAVEMODE here. This function returns the user's path selection or "" if the user cancelled the requester.

New in v3.0: The optional argument defdir$ allows you to specify the initial directory when the requester opens. By default, this will be the current directory.

Inputs
title$
title for the requester; pass an empty string ("") to use the default title
mode
optional: #REQ_NORMAL for normal mode, #REQ_SAVEMODE for save mode (defaults to #REQ_NORMAL)
defdir$
optional: initial directory for the file requester (defaults to "" which means current directory) (V3.0)
Results
p$
the user's selection or an empty string if he cancelled the requester
Example
p$ = PathRequest("Select a path")
If p$ = ""
  Print("Requester cancelled!")
Else
  Print("Your selection: ")
  Print(p$)
EndIf
Ask the user for a path and print its name.

Show TOC