易截截图软件、单文件、免安装、纯绿色、仅160KB

delphi 连接数据库 帮我解释这断程序是什么意思

procedure TPut_Form.FormActivate(Sender: TObject);
begin
    with adotable1 do
      begin
        tablename:='produce_type_t';
        if not active then
        active:=true;
        first;
          dbcombobox2.Items.Clear;
        dbcombobox1.Items.Clear;
      end;
        while not adotable1.Eof do
          begin
          dbcombobox2.Items.add(adotable1.Fields.fields[0].asstring);
          dbcombobox1.Items.add(adotable1.Fields.fields[1].asstring);
          adotable1.next;
          end;
    dbcombobox2.ItemIndex:=0;
    dbcombobox1.ItemIndex:=0;
end;
Delphi(Pascal) code:

procedure TPut_Form.FormActivate(Sender: TObject);
begin
with adotable1 do
begin
tablename:='produce_type_t'; //设置表名
if not active then
active:=true; //打开table
first; //指向第一条记录
dbcombobox2.Items.Clear; //清空items


相关问答:

delphi 数组跟for

如何用数组跟for打印出下面的图形
*
**
***
****

如果有更好的方法最好也写上 XX
procedure TForm1.Button2Click(Sender: TObject);
var
  arr: array of Integer;
  i,j: I ......

DELPHI执行程序运行那条代码啊?

嘿嘿,又来麻烦各位大牛了!我想了解我在代码的事件属性里面看不到有什么事件,还有在时间控件里面的Enabled的属性是False,这下蒙了,不知道程序运行之后执行的是那条命令,希望各位大牛赐教啦!
谢谢!
我这下 ......

偶然发现不知是Delphi还是windows的Bug?

总之,这个应该是个小BUG。

随便建个txt文档

第一行68个s加一个回车
第二行98个s加一个回车
第三行17个s加一个回车
总共183个s加三个换行,大小189字节。
接着用FileOpen和FileRead把文件 ......

delphi動態調用dll的困惑

procedure RunFunction;  
  type  
  TFunc = function(A: Integer): Integer;stdcall; //这里根据DLL里面函数的声明修改  
  var  
  ......

Delphi中数据库查询的疑惑

昨晚在Delphi数据库查询中遇到了一个疑惑。代码如下:
procedure TFormSearchAchievement.ComboBoxXYChange(Sender: TObject);
var
  XY : string;
begin
  XY := comboboxxy.Items[comboboxx ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号