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()


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()

My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Saturday May 28 2022 at 2:55pm