Belongs to : Function


The AnsiIndexStr function checks to see if any of the strings in StringList exactly match the Source string.

When a match is found, its (0 based) index is returned. Otherwise, -1 is returned.

The string list can be specified as a square bracket delimited list, as in the example, or as an array of strings.

It is a Case sensitive command.

Example code