TStringList类型的对象的数据是可以取出来的 取出来之后可以按照你的要求添加到TListView中的 TListView有 var tmpItem:TListItem; begin tmpItem:= ListView1.add; tmpItem.Caption:= 'Caption'; tmpItem.SubItem.Add('sdfsdf');//---the second showed in the same //row tmpItem.SubItem.Add('asdfdsa')//-- the third one; .. end; TStringList 类对象有 for i:= 0 to strList1.Count -1 do begin showmessage(strList1.strings[i]);//-- the ith one of the strList; end;
取出来之后可以按照你的要求添加到TListView中的
TListView有
var
tmpItem:TListItem;
begin
tmpItem:= ListView1.add;
tmpItem.Caption:= 'Caption';
tmpItem.SubItem.Add('sdfsdf');//---the second showed in the same
//row
tmpItem.SubItem.Add('asdfdsa')//-- the third one;
..
end;
TStringList 类对象有
for i:= 0 to strList1.Count -1 do
begin
showmessage(strList1.strings[i]);//-- the ith one of the strList;
end;