Pascal Scripting: BrowseForFolder


function BrowseForFolder(const Prompt: String; var Directory: String; const NewFolderButton: Boolean): Boolean;


Displays a dialog box that enables the user to select a directory. The current value of Directory is used as the initially selected directory. If NewFolderButton is True, a New Folder button will be shown, allowing the user to create new folders. Returns True if the user selected a directory and clicked OK, False otherwise. The selected directory is returned in the Directory string.