Function: aindexw

Syntax

aindexw (<value>,<array> {... <array} )

Type

numeric

Returns

The occurrences of one value within an array of values of similar type. If occurrences are found, one or more array indices, starting at one, are returned, otherwise zero is returned. When the identifier type is of type string, the search is case-insensitive and the search value is treated as a wild pattern.

Parameters

Examples

The following returns three values: 1, 4 and 4.

string ss[] = <'aa','bb','bb','AAA','aab'>
numeric i[] = aindexw('aa*',ss)

Since the destination is a scalar, the following returns one value: 1.

numeric i = aindexw('aa',ss)

See Also

Functions:

aindex (string), aindexc (string), aindexcw (string)