Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

My EasyList for Delphi and Freepascal was just updated to version 1.15

0 views
Skip to first unread message

amin...@gmail.com

unread,
Feb 10, 2020, 9:22:22 PM2/10/20
to
Hello,


My EasyList for Delphi and Freepascal was just updated to version 1.15

I have 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.
0 new messages