aindexcw (<value>,<array> {... <array} )
numeric
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-sensitive and the search value is treated as a wild pattern.
<value>
A value to test
for. This may be any scalar value, e.g. a numeric, point, string, time.
<array>
An array of similar
type to <value>.
Multiple arrays may be searched, in which case the return value(s) are
accumulative.
The folllowing returns two values: 1 and 5.
string ss[] = <'aa','bb','bb','AAA','aab'> numeric i[] = aindexcw('aa*',ss)
Since the destination is a scalar, the following returns one value: 1.
numeric i = aindexcw('aa*',ss)
Functions: |