arraytrim(
ARRAY
,
COUNT
,
SEPARATOR
)

The arraytrim( function removes one or more elements from the end of an array.


Parameters

This function has three parameters:

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

count – the number of items to remove from the end of the array.

separator – the separator character for this array.


Description

This function removes one or more elements from the end of an array. For example arraytrim(text,",",2) removes the last two elements from a comma separated array.

arraytrim("red;green;blue;yellow;orange",1,";") ☞ red;green;blue;yellow
arraytrim("red;green;blue;yellow;orange",2,";") ☞ red;green;blue
arraytrim("red;green;blue;yellow;orange",3,";") ☞ red;green

See Text Arrays for more information about arrays.

Note: This function is equivalent to:

arrayrange(thetext,1,arraysize(thetext,sep)-count,sep)

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.