![]() |
|
|
#1
|
|||
|
|||
|
Помогите пожалуйста. Если
Код:
FileListBox1.Directory |
|
#2
|
||||
|
||||
|
Цитата:
Код:
procedure TForm1.Button1Click(Sender: TObject);
begin
try
FileListBox1.Directory := 'a:\';
except
Form2.Show;
end;
end; |
|
#3
|
|||
|
|||
|
можно ещё так:
Код:
procedure Form1.SetDirectory(Path:String);
begin
if DirectoryExists(Path) then
FileListBox1.Directory := Path;
else
Form2.Show;
end; |