How to list unique values

Thanks for your answer. So there is no other way then looping through all records to find the unique values?

There is no function similar to a SQL SELECT DISTINCT Statement?