+ -
当前位置:首页 → 问答吧 → 如何往TcxComboBox里添加几行字符串?谢谢

如何往TcxComboBox里添加几行字符串?谢谢

时间:2011-10-25

来源:互联网

如何往TcxComboBox里添加几行字符串?谢谢

作者: tongtianxiao   发布时间: 2011-10-25

Delphi(Pascal) code
with Q_SQL do
  begin
    if not Active then
      Exit;
    if RecordCount = 0 then
      Exit;
    First;
    while not Eof do
    begin
      TcxComboBox.Items.Add(FieldByName('XXX').AsString);//添加的字符串
      Next;
    end;
  end;

----
Delphi(Pascal) code

TcxComboBox.Items.Add('a');
TcxComboBox.Items.Add('b');
TcxComboBox.Items.Add('c');


作者: jfhyn   发布时间: 2011-10-25

引用 1 楼 jfhyn 的回复:
Delphi(Pascal) code
with Q_SQL do
begin
if not Active then
Exit;
if RecordCount = 0 then
Exit;
First;
while not Eof do
begin
TcxComboBox.Items.Add(Fie……


我在没有这个 TcxComboBox.Items 啊 晕............

作者: tongtianxiao   发布时间: 2011-10-25

应该有这个属性的

作者: hongss   发布时间: 2011-10-25