ListBox1.Items.SaveToFile doesn't work with directories list


[ DelphiLand FAQ ]

Posted by albert on October 07, 2004 at 22:05:58:

procedure TForm1.SaveButtonClick(Sender: TObject);
begin
ListBox1.Items.SaveToFile('ListBox1.txt');
end;

procedure TForm1.DirectoryListBox1Change(Sender: TObject);
begin
ListBox1.Items.Add(DirectoryListBox1.Directory)
end;

procedure TForm1.FormCreate(Sender: TObject);
begin

end;

end.


Related Articles and Replies


[ Delphi Forum -- by DelphiLand ]