song fen ya help

with listbox1.itesms do
begin
if indexof('xxx') >-1 then
delete (indexof('xxx'));
end;

comparing signed and unsigned types - widened both operands (是什么意思!)
declaration expected but "with" found (为什么会这样? )
undeclared identifiler:'indexof'
[323 byte] By [wxxwxxwxxwxxwxx-空心菜] at [2007-12-16]
# 1
with listbox1.items do
begin
if indexof('xxx') >-1 then
delete (indexof('xxx'));
end;

我用delphi 5编译没有错误啊?
daniel007-添 at 2007-10-22 > top of Msdn China Tech,Delphi,VCL组件开发及应用...
# 2
你是不是把items写错了阿?
daniel007-添 at 2007-10-22 > top of Msdn China Tech,Delphi,VCL组件开发及应用...
# 3
with listbox1.items do
bobfang-匆匆过客 at 2007-10-22 > top of Msdn China Tech,Delphi,VCL组件开发及应用...
# 4
我也试过了,Delphi6编译也没有错。
如果你代码是拷贝的话,你那个items写错单词了
# 5
我也试过了,Delphi6编译也没有错。
如果你代码是拷贝的话,你那个items写错单词了
# 6
>>declaration expected but "with" found (为什么会这样? )
是这一句前面的语法错误
caim-感谢君儿 at 2007-10-22 > top of Msdn China Tech,Delphi,VCL组件开发及应用...
# 7
listbox1.itesms 的拼写错误,这句的前一句也有错误
# 8
哎,这么简单的错误!
knock-垃圾土匪 at 2007-10-22 > top of Msdn China Tech,Delphi,VCL组件开发及应用...
# 9
太简单了吧?
ybli-不懂 at 2007-10-22 > top of Msdn China Tech,Delphi,VCL组件开发及应用...