Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating ListView SubItems

Status
Not open for further replies.

paulbenn

Programmer
Jan 24, 2002
108
GB
Hi,

I am sure I am missing something here!! I have a List View and I can Add to it with no Problem, however what I can find a way of updating the ListView.

Code:
Procedure TForm1.updatesubitems;
Var
ListItem: TListItem;
Begin
with ListView1 Do
iCurItem := ListView1.FindCaption(0,sPCName,true,false,true).index;
ListView1.Items.Item[iCurItem];

ListItem.SubItems.add(DateToStr(Date()) + ' ' + TimeToStr(Time()));
end;



end;
Kind Regards, Paul Benn

**** Never Giveup, keep trying, the answer is out there!!! ****
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top