unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, CheckLst, DB, ADODB;type TForm1 = class(TForm) CheckListBox1: TCheckListBox; Button1: TButton; Memo1: TMemo; ADOQuery1: TADOQuery; procedure Button1Click(Sender: TObject); procedure FormShow(Sender: TObject); private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject); var i:integer; st:tstringlist;begin st:=tstringlist.Create; while not adoquery1.Eof do begin st.Add(adoquery1.fieldbyname('天气').AsString); adoquery1.Next; end; for i:=0 to st.Count-1 do begin checklistbox1.Items.Add(st.Strings); end; st.Free;end;procedure TForm1.FormShow(Sender: TObject);begin with adoquery1 do adoquery1.Close; adoquery1.SQL.Clear; adoquery1.SQL.Add('select 天气 from 表'); adoquery1.Open;end;end.