Function: index

Syntax

index (<string1>, <string2> {,<int>})

Type

numeric

Returns

The occurrence of one string within another. If an occurrence is found, a character index is returned, otherwise zero. The search is case insensitive.

Parameters

Examples

The following returns the value 2.

numeric occ = index('abc','B')

The following returns the value 5.

numeric occ = index('abcabc','bc',2)

See Also

Functions:

indexc (numeric)