...@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
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
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
[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
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
...@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
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