with dataset do
begin
  first;
  while not eof do
  begin
    combobox.items.add( FieldByName('col').asString );
    next;
  end;
end;
要操作哪些控件呢?

解决方案 »

  1.   

    什么意思 
    你可以在combobox enter是触发
      

  2.   

    是comboBox下拉框如何显示数据库中的数据,比如学号字段
    代码是有,但不知道如何做作,上面的代码要写在哪呢?
      

  3.   

    with dataset do
    begin
      first;
      while not eof do
      begin
        combobox.items.add( FieldByName('学号').asString);
        next;
      end;
    end;你把这段代码放再Form的Create或者Show里面执行就行
      

  4.   

    combobox.Items.AddObject(Trim(FieldByName('字段').AsString);
      

  5.   

    combobox.Items.AddObject(Trim(FieldByName('字段').AsString));