如和用for循环读取ListBox1里的每条内容!! 如和用for循环读取ListBox1里的每条内容!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 var i: integer;begin for i := 0 to ListBox1.Items.Count - 1 do begin ShowMessage(ListBox1.Items.Strings[i]); end;end; var i: integer;begin for i := 0 to ListBox1.Items.Count - 1 do begin ShowMessage(ListBox1.Items.Strings[i]); end;end;引用妖哥的。 for i := 0 to ListBox1.Items.Count - 1 do for i := 0 to ListBox1.Items.Count - 1 do 从0到count-1是因为listbox是从零开始计的。 画线 置顶 如何查找一个字符串里是否包含回车换行符? 有人用Delphi写过IOCP?谁给我个简单得例子啊. 请教大侠们,如何实现如货币“10,000,000”形式的输出? 现在的女性真幸福! firetoucher(风焱)兄,接分! 网格显示问题 分割字符串 哪有pascal语言的教材,请告诉我网址。谢谢各位 怎么样编程实现网页上EDIT的填写和自动提交??:) 今天突然不能运行delphi7,说要注册? 开发ERP系统使用Delphi(或其他开发工具)开发单个EXE的启动文件和使用wed网页形式相比,哪种更好?
i: integer;
begin
for i := 0 to ListBox1.Items.Count - 1 do
begin
ShowMessage(ListBox1.Items.Strings[i]);
end;
end;
i: integer;
begin
for i := 0 to ListBox1.Items.Count - 1 do
begin
ShowMessage(ListBox1.Items.Strings[i]);
end;
end;
引用妖哥的。
从0到count-1是因为listbox是从零开始计的。