本文整理自网络,侵删。
//刷新一下复合框,同时清除分类输入框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 getrandompassword 生成随机密码
Delphi中write,read,writeln和readln的用法
Delphi 如何使用findfirst搜索不同的文件类型?
Delphi getfilehashmd5获取文件 hashmd5值
更多相关阅读请进入《Delphi》频道 >>