procedure TForm1.Button1Click(Sender: TObject);
begin
with TStringList.Create do
begin
Sorted:=true;
Duplicates:=dupIgnore
//*********
Assign(ListBox1.Items);
ListBox1.Items.Text:=Text;
Free;
end;
end;
combobox1.items.clear;
with query1 do
begin
close;
sql.clear;
sql.text:='select * from consum'
open;
if recordcount>0 then
first;
whlie ture do
begin
combolox1.items.add(fieldbyname['金额'].asstring)
next;
end;
end;