I need to count how many items I have added in a listview
, I did the following:
LV1.Items.BeginUpdate;
try
for i := 0 to LV1.Items.Count-1 do
Label11.Caption := inttostr(i+1);
finally
LV1.Items.EndUpdate;
end;
end;
It works the most has a bug , when I add 2 ITEMS, it appears 2. When I turn off the 2 ITEMS instead of 0, "1" will appear. Any ideas?