DRCtrlPickDirectory

From EDM2
Jump to: navigation, search

Open a dialog to pick a directory.

Syntax

theDir=DRCtrlPickDirectory("x:\the_path\directory", "Title of directory")

Parameters

Path 
Full path of the directory that is going to be picked.
Title of Directory
This parameter may be omitted. The default Title is "Find directory".

Return Code

The function returns the chosen directory or an empty string if the user selected cancel or an error occurred.

Remarks

Use this REXX function to pick a directory.

theDir=DRCtrlPickDirectory("x:\the_path\directory", "Title of directory")

When the first parameter is given, the directory dialog will be prefilled with the given path. The second parameter may be omitted. The default Title is "Find directory". The function returns the chosen directory or an empty string if the user selected cancel or an error occurred.