[yunqa.de] Re: How to iterate TDIUnicodeStringHash?

  • From: Rael Bauer <support@xxxxxxxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Wed, 01 Oct 2014 15:21:29 +0200

Thanks that is helpful.

My main purpose is for lookup hence I chose a hash list, however on some occasions i need to iterate the entire list.

I notice you use VectorCount:

for i := 0 to UnicodeStringHash.VectorCount - 1 do

1) Why not use UnicodeStringHash.Count?

2) If I do use UnicodeStringHash.Count, then do I still need to check for 
deleted items?



_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
//www.freelists.org/list/yunqa



Other related posts: