Delphi TADOQuery的用法


本文整理自网络,侵删。

 
//刷新一下复合框,同时清除分类输入框
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 radiogroup 组件基本用法

Delphi format中的换行符号是什么

Delphi 内存管理1

Delphi服务程序(service)的调试方法

Delphi for 循环输出 a-z

Delphi 有关debughook

Delphi 判断iso文件,iso文件头, iso filehead

Delphi读取android短信信息

Delphi程序禁止结束进程

Delphi安卓定位权限申请

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...