arrayfirst(
ARRAY
,
SEPARATOR
)

The arrayfirst( function extracts the first element of a text array.


Parameters

This function has two parameters:

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

separator – the separator character or characters for this array.


Description

This function extracts the first element of a text array.

arrayfirst("red;green;blue;yellow;orange",";") ☞ red
arrayfirst("north/south/east/west","/") ☞ north

See Text Arrays for more information about arrays.

Note: This function is equivalent to:

array(thetext,1,thesep)

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.