GETDIR()

From Lianjapedia
Jump to: navigation, search

Purpose

Function to display a dialog allowing a directory to be selected and its name returned.

Syntax

GETDIR([<expC1> [, <expC2> [, <expC3> [, <expN> [, <expL>]]]]])

See Also

DIRECTORY(), GETFILE(), LOCFILE(), PUTFILE()

Description

The GETDIR() function displays a dialog allowing a directory to be selected and its name returned. The dialog allows navigation through directories and sub-directories. If a directory is selected, the GETDIR() function returns the name of that directory. If no directory is selected, the GETDIR() function returns an empty string "".

Parameters Description
<expC1> The starting directory
<expC2> Ignored.
<expC3> The text to display in the dialog title bar.
<expN> Ignored.
<expL> Ignored.

Example

cDirSelected = getdir("C:\Lianja","","Please select a directory")