This is done
- a method calls a function
- this function does a query with a unknown count of results and returns them at the moment in a THashedStringList.
Each "hit" has naturally a primary key, which is known by the function
- the calling method writes the function's results (=the THasedStringList) into a TListView
- the user clicks one line of the TListView and triggers the ListView's click-Event.
How to get the primary key into the ListView's click-Event?!
My idea was, that it shall be saved in the returned HashStringList.
Unfortunately I neither know, how to key in the primary keys as values.
Nor do I know, how to grab those values, after having added the words to the TListView.
In other words:
I need a way to get the primary key into the click event of the TListView.
I am thankful for any syntax, how to read and write a HasehdStringList.
As well as better ways to do it.
In the meanwhile I found a better documenation.
https://www.freepascal.org/docs-html/fcl/inifiles/thashedstringlist.indexof.html