[DUG] Directory Dialog

Steve Peacocke steve.peacocke at gmail.com
Wed Sep 5 09:48:19 NZST 2007


Someone here (Rohit?) was grumbling (sorry, "explaining") that Delphi
2007 doesn't have a Dialog for selecting a directory.

I found one this morning. Use FileCtrl in your uses clause and state...

    if SelectDirectory('Select a directory', 'C:\', Dir) then
        ShowMessage('Directory = ' + Dir);

Voila. A directory selection dialog.

Steve

-- 
Steve Peacocke
http://stevepeacocke.blogspot.com/


More information about the Delphi mailing list