Functions

nthField

Supported By

Syntax

[the] nthField of ( string , delimiter , index )

nthField ( string , delimiter , index )

String and delimiter yield strings. Index yields an integer.

Description

The nthField function returns a chunk of the specified string delimited by the specified delimiter. Index starts at 1.

If index is less than 1 or greater than countFields(string, delimiter), empty is returned.

The delimiter is case-insensitive. For a case-sensitive version of this function, see csNthField. For a regular expression-based version of this function, see regNthField.

See Also

csNthField, regNthField, trNthField, countFields, csCountFields, regCountFields, trCountFields