本文整理自网络,侵删。
//刷新一下复合框,同时清除分类输入框procedure TmainForm.RefreshClass;begin comboBox1.Items.Clear; edit3.Text:=''; qr.Close; qr.SQL.Clear; qr.SQL.Add('select cls_name from tb_article_class'); qr.Open; if not qr.Eof then begin qr.First; while not qr.Eof do begin combobox1.Items.Add(qr.FieldByName('cls_name').AsString); qr.Next; end; end; //qr.Close;end;
相关阅读 >>
Delphi 判断iso文件,iso文件头, iso filehead
更多相关阅读请进入《Delphi》频道 >>