arrayunpropagate
INPUT
,
TEXT
,
SEPARATOR

The arrayunpropagate statement scans an array from top to bottom, removing duplicate values in a row.


Parameters

This statement has three parameters:

input – Original array.

text – Modified array.

separator – Separator character.


Description

This statement scans an array from top to bottom. If it finds two or more duplicate values in a row, it blanks out all but the first. This is similar to the Unpropagate statement, but for an array instead of a database field.

This example blanks out consecutive duplicates from an array.

arrayunpropagate classes,classes,cr()

The arrayunpropagate does not sort the array before hand so you may want to use arraysort( before using arrayunpropagate as in this example.

arrayunpropagate arraysort(classes,cr()),classes,cr()

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.