Error assigning Caption with Inc

1

I have a LISTVIEW component, multiple records are inserted into it. I need to generate Auto Increment code in the Caption of this listview according to the number of records entered. I've tried something like this:

l := l + 1;
Item.Caption := Inc(l,1);

He does not accept, of error. Any suggestions?

    
asked by anonymous 29.08.2014 / 22:50

1 answer

1

I have already decided, for those who are interested or have the same problem, do the following:

    l := l + 1;
   Item.Caption := inttostr(l);
    
29.08.2014 / 23:16