arraydeletevalue(
ARRAY
,
VALUE
,
SEPARATOR
)

The arraydeletevalue( function deletes any array elements that match the value parameter. This must be an exact match, including upper and lower case. If the value occurs multiple times in the array, every occurence of the value will be removed, with one exception: if the value occurs in two consecutive array elements, only the first occurence will be deleted.


Parameters

This function has three parameters:

array – the original text array (see Text Arrays).

value – the value to remove from the array.

separator – the separator character or characters for this array.


Description

This function deletes any elements in the array that match the value parameter. This must be an exact match, including upper and lower case. If the value occurs multiple times in the array, every occurence of the value will be removed, with one exception: if the value occurs in two consecutive array elements, only the first occurence will be deleted.

arraydeletevalue("a/b/c/d","d","/") ☞ a/b/c
arraydeletevalue("red,green,blue","blue",",") ☞ red,green

See Text Arrays for more information about arrays.

Note: This function is equivalent to:

replace(thesep+thearray+thesep,thesep+thevalue+thesep,thesep)[length(thesep)+1,-(length(thesep)+1)]

See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0 but more than one character is now allowed for use as the separator parameter.