Recent

Author Topic: TListItem ListIndex(0) out of Bounds  (Read 5194 times)

BlueIcaro

  • Hero Member
  • *****
  • Posts: 792
    • Blog personal
TListItem ListIndex(0) out of Bounds
« on: August 31, 2010, 02:02:20 pm »
Hello, I got this error, when I try to add item to TListItem, using Object inspector, algo during runtime, with this code:
Quote
procedure TForm1.Button1Click (Sender: TObject );
Var
 MiITem : TListItem;
begin
  MiItem := TListItem.Create(ListView1.Items);
   MiItem.Caption:=Edit1.Text;
   ListView1.Items.AddItem(MiItem);

end;         

But The items, after the error, is show in the TListView.

My Lazarus is: 0.9.29 SVN: 27113, FPC 2.4.3

/BLueIcaro

BlueIcaro

  • Hero Member
  • *****
  • Posts: 792
    • Blog personal
Re: TListItem ListIndex(0) out of Bounds
« Reply #1 on: August 31, 2010, 02:09:49 pm »
I found that is a bug reported
http://bugs.freepascal.org/view.php?id=17263

I'll donwload the last snapshot.

/BlueIcaro

BlueIcaro

  • Hero Member
  • *****
  • Posts: 792
    • Blog personal
Re: TListItem ListIndex(0) out of Bounds
« Reply #2 on: August 31, 2010, 02:58:46 pm »
Well, The problem it's out.

By I don't search throught the bugtracker  :-[

/BlueIcaro

 

TinyPortal © 2005-2018