SourcePoint Intel Help

Table of Contents

selectdirectory

Open a dialog to select a directory.

Syntax

[result =] selectdirectory([startPath])

Where:

result

specifies an nstring variable to which the function return value is assigned. If result is not specified, the return value is displayed on the next line of the screen.

startPath

is an nstring variable or string constant specifying the directory to begin the search in.

Discussion

The selectdirectory function displays a dialog to allow the user to specify a directory. The path returned includes a backslash at the end.

If startPath is specified the search begins in that directory. ย If startPath is not specified the search begins in the last directory accessed.

Example

Command input:

define nstring strDir = selectdirectory("c:\program files")

// dialog opens, user selects a directory

strDir

Result:

"C:\Program Files\test\"

Related Topics: