我在程序中加入下列代码procedure TForm1.FormCreate(Sender: TObject);
begin
with adoquery1 do
begin
close;
sql.Clear;
sql.Add('select * from area');
open;
first;
while not eof do
begin
DBComboBox1.Items.Add(adoquery1.Fields[0].asstring);
next;
end;
end;
end;怎样才能在DBComboBox1使鼠标点击选中所需的选项
begin
with adoquery1 do
begin
close;
sql.Clear;
sql.Add('select * from area');
open;
first;
while not eof do
begin
DBComboBox1.Items.Add(adoquery1.Fields[0].asstring);
next;
end;
end;
end;怎样才能在DBComboBox1使鼠标点击选中所需的选项
解决方案 »
- 求TImgEdit的帮助文档
- form2用form1.combobox1.text报错。
- 关于listbox的滚动条问题
- 在interface中为什么要加载ToolWin,ComCtrls, Buttons, uTiler,shellapi;它们有什么作用是什么。
- 我在往Blob字段写数据时,总是创建TBlobStream失败,不是为什么,请高手指点!
- 在Delphi里一般用什么方法解析和生成XML文件
- (EHlib)中的DBGRIDEH的运用
- 怎样才能在DBGRID中实现数据的复制、移动、删除和粘贴功能?
- 快
- 大家好,请问那里有常用的AP函数下载!!!!
- 各位兄台,,救命呀。。。好簡單的。
- 空值问题
with adoquery1 do
begin
close;
sql.Clear;
sql.Add('select * from area where 第一个字段='''+dbcombobox1.text+''' ');
open;
.
.
.
.
end;