PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: AddressCmd()[Next]: ArrayReverse()
\ -> Rexx -> Inbuilt PPWIZARD Functions -> ArrayRemoveDup()

ArrayRemoveDup()

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:

  1. The name of an array to be processed (without dot).

  2. The optional number of repeating entries allowed (default is 1).

The number of items in the array after removing any duplicates is returned.


email me  any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Search][Prev]: AddressCmd()[Next]: ArrayReverse()


PPWIZARD Manual
My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Sunday November 05 2017 at 10:00am