[FORGET] Extracting unique values from TDataSet lazarus / 16-Databases ---------------------------------------------------------------------- egsuh · 2024-12-19 09:00 Forget this. This question has been several times already. Is there any way to do that from TDataSet descendants?  In SQL, I can write           select distinct fieldname from... ---------------------------------------------------------------------- Zvoni · 2024-12-19 09:26 Quick and dirty: Throw the Values of the Dataset-Field you're interested in at a StringList which is set to sorted and not allow duplicates ---------------------------------------------------------------------- egsuh · 2024-12-19 10:05 QuoteQuick and dirty: Throw the Values of the Dataset-Field you're interested in at a StringList which is set to sorted and not allow duplicates I did it with TFPGMap as my data type is integer ^^