GetDirectoryDialog

GetDirectoryDialog displays a directory selection dialog.

ssDirectory = GetDirectoryDialog()
ssDirectory = GetDirectoryDialog(ssStartDir)
ssDirectory = GetDirectoryDialog(ssStartDir, ssTitle)
ssDirectory = GetDirectoryDialog(ssStartDir, ssTitle, ssInfo)
ssDirectory = GetDirectoryDialog(ssStartDir, ssTitle, ssInfo, bShowFiles)

Return Value

ssDiretory is the selected directory. The directory includes a drive name and a path name. The path name ends with a trailing backslash (“"), e.g. c:\Windows\System\. If the user clicks the Cancel button, "DLG_CANCEL" is returned.

Parameters

ssStartDir

Specifies the start directory. If the parameter is not valid or not specified, the dialog box starts with the current directory.

ssTitle

Specifies a dialog title.

ssInfo

ssInfo is a text that can be displayed in the dialog box.

bShowFiles

If bShowFiles is TRUE (1), files will be displayed in the dialog.

Example

* GetDirectoryDialog("c:\\")
c:\UniPlot\Script\

id-2107347