3
I need to count how many items you have added in one 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 more has a bug, when I add 2 ITEMS, 2 appears. When I delete the 2 ITEMS instead of 0, "1" appears. Any ideas?
I don’t understand, you already have the LV1.Items.Count method ...
– Motta