Вниз
Скачать: CL | DM;

Господа!!! Помогите новичку, плз...   Найти похожие ветки 

← →
angelcom   (2002-06-15 11:00) [0]

Как указав папку вывести список файлов в CheckListBox по маске (*.wav) с их размером
Буду очень признателен за примерчик


← →
AK-74 ©   (2002-06-15 11:16) [1]


...
StatusBar1: TStatusBar;
SDir: TDirectoryEdit;
SList: TRxCheckListBox;
...

procedure TForm1.FillList ;
var
sr: TSearchRec;
FileAttrs: Integer;
begin
StatusBar1.SimpleText := "Ищем файлы...";
SList.Clear;
FileAttrs := faAnyFile;

if FindFirst(SDir.Text+"\*.wav", FileAttrs, sr) = 0 then
begin
with Form1.SList do
begin
if ((sr.Attr and faDirectory) <> sr.Attr) then
begin
Items.Add(sr.Name+IntToStr(sr.Size));
Checked[Items.Count-1] := True // если надо сразу отметить
end;
while FindNext(sr) = 0 do
begin
if ((sr.Attr and faDirectory) <> sr.Attr) then
begin
Items.Add(sr.Name+IntToStr(sr.Size));
Checked[Items.Count-1] := True
end;
end;
FindClose(sr);
end;
end;
end;


← →
angelcom   (2002-06-15 12:24) [2]

Огромное спасибо АК-74



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.009 c
7-89052
S.A.Y.
2002-04-02 02:39
2002.06.27
Народ!!!! Как проставить шрифты???


1-88816
ups:(
2002-06-14 09:55
2002.06.27
работа с датами


1-88902
voodoo_alex
2002-06-13 21:59
2002.06.27
Как идеологически верней ?


1-88866
Good Man
2002-06-17 21:29
2002.06.27
Как получить TextRange конкретного фрейма в TWebBrowser?


1-88886
Nebula
2002-06-14 13:58
2002.06.27
Delphi & COM




   Наверх