Re: [DUG] Validating a TListItem exists

2011-02-01 Thread Jolyon Smith
...@delphi.org.nz] On Behalf Of Ross Levis Sent: Tuesday, 1 February 2011 18:45 To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Validating a TListItem exists ListView.Items.IndexOf() does the trick, so I'll do that in the meantime. Cheers. From: delphi-boun

Re: [DUG] Validating a TListItem exists

2011-02-01 Thread Todd
to you... J *From:* delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] *On Behalf Of *Ross Levis *Sent:* Tuesday, 1 February 2011 18:45 *To:* 'NZ Borland Developers Group - Delphi List' *Subject:* Re: [DUG] Validating a TListItem exists ListView.Items.IndexOf() does the trick, so I'll

Re: [DUG] Validating a TListItem exists

2011-01-31 Thread Jolyon Smith
Group - Delphi List' Subject: [DUG] Validating a TListItem exists I'm storing some TListItem's in a TList. Some of these items could be removed from the listview at some stage. I know the items should be removed from the TList when removed from the listview, but don't ask

Re: [DUG] Validating a TListItem exists

2011-01-31 Thread Ross Levis
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jolyon Smith Sent: Tuesday, 1 February 2011 10:59 AM To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Validating a TListItem exists AFAIK when an item is deleted from a listview it is also free'd. Unavoidably. If you have a reference

Re: [DUG] Validating a TListItem exists

2011-01-31 Thread Jolyon Smith
Of Ross Levis Sent: Tuesday, 1 February 2011 13:30 To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Validating a TListItem exists I was hoping to avoid that. I was thinking there may be a way of validating that it is still a TListItem the pointer is pointing to, something like

Re: [DUG] Validating a TListItem exists

2011-01-31 Thread Ross Levis
...@delphi.org.nz] On Behalf Of Ross Levis Sent: Tuesday, 1 February 2011 13:30 To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Validating a TListItem exists I was hoping to avoid that. I was thinking there may be a way of validating that it is still a TListItem the pointer

[DUG] Validating a TListItem exists

2011-01-30 Thread Ross Levis
I'm storing some TListItem's in a TList. Some of these items could be removed from the listview at some stage. I know the items should be removed from the TList when removed from the listview, but don't ask. Is there a simple method to determine if a listitem reference is still valid and