So, the question is, how to make the Item in the ComboBox display contents of Text file
Thanks

procedure TForm1.ComboBox1Change(Sender: TObject);
var
FileName: String;
begin
if ComboBox1.ItemIndex >= 0 then
begin
FileName := ComboBox1.Items[ComboBox1.ItemIndex];
Memo1.Lines.LoadFromFile(FileName);
end;
end;
Users browsing this forum: No registered users and 2 guests