A very basic question:
Is there a Xojo Method to remove duplicate elements in xojo?
I’m searching in the Forum and the help, but didn’t find anything. Or I used the wrong search terms.
Example:
We have the array:
[1, 4, 2, 2, 6, 24, 15, 2, 60, 15, 6]
And I want to have this one:
[1, 2, 4, 6, 15, 24, 60]
The name of the array could be StringArray_Test.
So I want do:
StringArray_Test.Sort
then I have the sorting.
But now I have some double entries.
I need something like
StringArray_Test.deleteduplicates
But I can’t find the correct method. Or doesn’t Xojo have a method for this?