Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 13329, Add Items to a TListView

by Frank Hirka Email: Anonymous


Download Details
FTP  download also available 0 bytes
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 1.0  to 4.0 19 downloads
Copyright: No significant restrictions


Size: 0 bytes
Updated on Mon, 17 May 1999 00:00:00 GMT
Originally uploaded on Mon, 17 May 1999 00:00:00 GMT
Description
This Procedure shows an easier way to Add items and its SubItems to a TListView

Add Items to Listviews
fListView : Listview name
fCaption : caption to be added
fSubItems : a SET of Subitems

Procedure LVAddData(fListView: TListView; fCaption : string; fSubItems : Array of string);
var
i : Integer;
begin
ListItem := Tlistview(fListView).Items.Add;
ListItem.Caption := fCaption;
for i := 0 to High(fSubItems) do
ListItem.SubItems.Add(fSubItems[i]);
end;

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Server Response from: ETNACDC03