本来我ListView中有两个Items,有六个SubItem 我用 for j:=0 to ListView1.Columns.Count-1 do showmessage(ListView1.Columns[j].Caption) 只能得到两项即Items的Caption,却不能达到SubItem的Caption! 我想遍历ListView下的所有项目,谢谢!!
----------------------------------------------
-
for I := 0 to ListView1.Items.Count - 1 do begin ShowMessage(ListView1.Items[I].Caption); ShowMessage(ListView1.Items[I].SubItems[0]); 是第1个SubItem // 类推 ... end;
----------------------------------------------