PathRequester()

语法

Path$ = PathRequester(Title$, InitialPath$)
概要
Opens the standard path requester for the user to select a path.

参数

Title$ The title of the requester window.
InitialPath$ The initial path to use when the requester is opened.

返回值

The selected path, or an empty string if the requester has been canceled by the user.

Remarks

The path is returned with the terminating '\' on Windows, or the terminating '/' on Linux and OS X.

示例

  InitialPath$ = "C:\"   ; set initial path to display (could also be blank)
  Path$ = PathRequester("Please choose your path", InitialPath$)
  If Path$
    MessageRequester("Information", "You have selected following path:"+Chr(10)+Path$, 0)
  Else
    MessageRequester("Information", "The requester was canceled.", 0) 
  EndIf

已支持操作系统

所有

<- OpenFileRequester() - Requester Index - SaveFileRequester() ->