Skip to content

Word Function

Nilesh Ghodekar edited this page Jan 15, 2016 · 4 revisions

Syntax

string Word(input:string, index:int, delimiter:char)

Description

Returns a word contained within a string, based on parameters describing the delimiter character to use and the word index to return.

Remarks

As is the case with any other WAL functions, the index is zero-based.

If the second input parameter (index) or the third input parameter (delimiter char) is null, an exception is thrown. If the delimiter contains more than one character, an exception is thrown. If the input string is null, the function returns a null value. If string contains less words than word index specified, the function returns a null value. If the index is zero, the input string is returned.

Supported Version

1.0.0.0 and later

Examples

``

Clone this wiki locally