This is an inbuilt function function provided by PPWIZARD.
This routine loops through an array and removes repeating entries. You can define how many entries in a row to allow.
The array is never searched so if you wish to never have more that one item anywhere in the array having the same value then you should sort the array first.
The compare is "strict", that is leading/trailing whitespace etc is significant. Depending on your needs you might wish to case translate or strip whitespace from entries (possibly using ArrayTranslate()).
This function takes one or more parameters as follows:
The number of items in the array after removing any duplicates is returned.