くだすれDelphi(超初心者用)その22
■ このスレッドは過去ログ倉庫に格納されています
0384デフォルトの名無しさん
05/02/14 14:25:58TFileListBox.DirectoryにTDirectoryListBox.Directoryから取り出したパス文字列に
\logを付け足して動的にセットしてやるといいんでは?各階層に\logフォルダの存在チェックもしつつ。
procedure TForm1.DirectoryListBox1Change(Sender: TObject);
var
path,logpath:TFileName;
begin
path := DirectoryListBox1.Directory;
logpath := path + '\log';
if DirectoryExists(logpath) then
begin
FileListBox1.Directory := logpath
end
else
begin
FileListBox1.Directory := path
end;
end;
■ このスレッドは過去ログ倉庫に格納されています