Hello..
My EasyList for Delphi and Freepascal was just updated to version 1.15
I have just added a very important method here it is:
FindThisOrFirstGreater() is useful when you want to construct an SQL
command like the following:
Select FROM Product
WHERE UnitPrice > 50
So you have to execute FindThisOrFirstGreater() method of EasyList and
it will sort the dynamic array if TEasyList in an ascending order if it
isn't sorted in ascending order, and it will find the Item of UnitPrice
of 50 or the First Item of greater than UnitPrice of 50 , and after that
it is easy to construct this SQL command.
And if FindThisOrFirstGreater() method doesn't find the Item it will
return -1.
Both Find() and FindThisOrFirstGreater() use a binary search, so they
have a log(n) time complexity and they are very fast.
You can read about and download my new EasyList from my website here:
https://sites.google.com/site/scalable68/easylist-for-delphi-and-freepascal
Thank you,
Amine Moulay Ramdane.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)