Topic: Folder Browser Dialog ?

Hello MVD,

Question, is there a function in MVD or a script that can be accomodated to open up a folder browser dialog?  I want to implement
something similar to this C# snippet:

public void ChooseFolder()
{
    if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
    {
        textBox1.Text = folderBrowserDialog1.SelectedPath;
    }
}

Please let me know, thanks!

Re: Folder Browser Dialog ?

Found it!

пример с диалогом выбора папки

procedure Form1_Button2_OnClick (Sender: string; var Cancel: boolean);
var
    s: string;
begin
    s := '';
    SelectDirectory('Caption', 'c:\', s); // default dialog
    SelectDirectory('Caption', 'c:\', s, True); // with button create a directory
    SelectDirectory('Caption', 'c:\', s, True, True); // with button create a directory and shows files
    if s<>'' then ShowMessage(s);
end;

Dmitry.