[DUG] Validating a TListItem exists

Ross Levis ross at stationplaylist.com
Mon Jan 31 16:24:09 NZDT 2011


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 exists, or do I need to use listview.items.indexof which could be slow.

 

Cheers.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20110131/d28a105c/attachment.html 


More information about the Delphi mailing list