Difference between revisions of "TSelectDirectoryDialog"
From Free Pascal wiki
Jump to navigationJump to search (Don't use Trim, a directory name can start with or end in a space (really, I tested this, it played havoc on my Windows system though)) |
|||
Line 4: | Line 4: | ||
<syntaxhighlight>if SelectDirectoryDialog1.Execute then | <syntaxhighlight>if SelectDirectoryDialog1.Execute then | ||
− | LabelDir.Caption := | + | LabelDir.Caption := SelectDirectoryDialog1.FileName + PathDelim; |
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 18:48, 10 April 2019
│
English (en) │
français (fr) │
русский (ru) │
中文(中国大陆) (zh_CN) │
TSelectDirectoryDialog is a component that aids in selecting a directory in the file system. It can be found on the Dialogs tab of the Component Palette.
if SelectDirectoryDialog1.Execute then
LabelDir.Caption := SelectDirectoryDialog1.FileName + PathDelim;
See also