麻烦大家进来看看下面的代码,有错误,望指教修改
CASE combobox1.text of
'defect_kind':
begin
adoquery2.Close;
adoquery2.sql.clear;
adoquery2.sql.text:='select defect_kind_value from defect_kind';
adoquery2.Open;
with adoquery2 do
begin
while not eof do
begin
listview1.Items.AddItem(fieldbyname('defect_kind_value'));
next;
end;
end;
end;
提示给出错误如下:
1.ordinal type required
2.incompatible types:'TListItem'and 'TField'
'defect_kind':
begin
adoquery2.Close;
adoquery2.sql.clear;
adoquery2.sql.text:='select defect_kind_value from defect_kind';
adoquery2.Open;
with adoquery2 do
begin
while not eof do
begin
listview1.Items.AddItem(fieldbyname('defect_kind_value'));
next;
end;
end;
end;
提示给出错误如下:
1.ordinal type required
2.incompatible types:'TListItem'and 'TField'
...全文
相关推荐
IDEA maven依赖错误中包下面红色波浪线
主要介绍了IDEA maven依赖错误中包下面红色波浪线,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
不懂的工程代码,求指教
哪位大大哥大大姐来帮我搞定问题呀!!这个工程是一个网上书店,被我改了一点!可是现在运行不了了!!来个人帮我看看吧!!
黑苹果常见dsdt、ssdt错误修改
黑苹果常见dsdt、ssdt错误修改,收集以及自己解决的错误
WINCE下面修改注册表程序
WINCE下面可以直接使用的注册表修改工具,在CE5.0到7.0上都测试可用。
C#窗体修改密码的代码
C#初学者的代码,利用WINDOWS窗体制作数据库系统,针对修改密码这个版块。


数据库相关
