使用TDBComboBox解决,not TComboBox
解决方案 »
- 请教:数据显示问题
- Tadoconnection如何在COM里创建?
- 如何换行绘制一个超过显示宽度的长英文串?
- 怎样开发windows2000下的服务程序,或隐身程序
- sqlserver2000的端口不是1433了,用ado应该怎么连?
- 有人可以帮我吗?
- 要成為專家?容易!請進!!!!
- DBGridEh问题求助
- 急,在线求教二个简单DELPHI编程问题,回应给分,是关于数据库存取变量及文本框显示问题.
- 没分的一个问题:在delphi+word2000中有一个range对象,它的若干个属性值均存放在数据表中,能直接绑定它的属性值吗?
- 如何把记录类型的变量的内容写入TMemoryStream中,再从TMemoryStream中读出来
- select * from tele.db where 姓名=edit1.text;
实现也方便,不便于控制。
Table1.Open;
Table1.First;
ComboBox1.Items.Clear;
i := 0;
with Table1 do
begin
while i < RecordCount do
begin
ComboBox1.Items.Add(FieldByName('').AsString);
Inc(i);
Next;
end;
end;
ComboBox1.ItemIndex := 0;
Table1.Close;
Table1.First;
Combobox1.Items.Clear;
While Not Table1.Eof Do
Begin
Combobox1.Items.Add(Table1.FieldsByName('字段名').AsString);
Table1.Next;
End;
Combobox1.ItemIndex:=0;
当然,如果用try拦截,用EOF也无妨