简单数据库问题 怎么在打开一个新的Form的时候让Form上的ComboBox里面的下拉内容自动读取数据库中某表的一列指定值? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在新的FORM中放一个Table...指定你要读的表。在FORM的OnCreate事件中加入with table1 dobegin First; while not Eof do begin ComboBox.items.add(FieldByName('Field1').AsString); Next; end; Close;end; 自己读了写进去吧ComboBox.items.add(Dataset.FieldByName('Field').AsString); 按hch_45(んこん) 的方法做了。不过要加上一句ComboBox.items.clear; ComboBox.items.clear; 这句加哪里呢? ComboBox.items.clear;with table1 dobegin First; while not Eof do begin ComboBox.items.add(FieldByName('Field1').AsString); Next; end; Close;end; button、bitbtn、speedbutton的疑问,望解决 急求:paradox数据库,如何同外部的access做关联查询 读取系统搜索窗口中的全部文件路径 数据导入道word的问题 delphi 程序员的未来之路-充满了悬念 关于adotable控件的一个简单问题。在线等! 在 Delphi 5中 如何 锁 定 DBGRID左 边 列 AdoTable的post方法? 如何强制实现应用程序当前工作目录的转换,将c:\vfp 切换到c:\jpg ? 急!!!日期查询比较的问题!!! MDI的问题,在线等,立即给分 如何画图,请高手指点
with table1 do
begin
First;
while not Eof do
begin
ComboBox.items.add(FieldByName('Field1').AsString);
Next;
end;
Close;
end;
ComboBox.items.clear;
这句加哪里呢?
with table1 do
begin
First;
while not Eof do
begin
ComboBox.items.add(FieldByName('Field1').AsString);
Next;
end;
Close;
end;