|
| Dialog for selecting directory | 
|
|---|
| The function SelectDirectory | Product: Delphi all versions | Category: Files Operation | Skill Level:
 | Scoring:  | Last Update: 03/20/2000 | Search Keys: delphi delphi3000 article borland vcl code-snippet select directory | Times Scored: 4 | Visits: 4677 | Uploader: Christian Maas Company: | Reference: http://www.chmaas.handshake.de/delphi/tips.htm | | | Question/Problem/Abstract:
Use the function SelectDirectory in unit FileCtrl. Look in the online help for more information.
Example:
| Answer:
uses FileCtrl; // for SelectDirectory
var
Dir: string;
(...)
Dir := 'C:\Windows';
if SelectDirectory(Dir, [sdAllowCreate, sdPerformCreate,
sdPrompt], 0) then
Label1.Caption := Dir;
|
|