CoreClasses Xojo Plugin

StringArray.IndexOf Method (console safe)

Returns a index of a element in the array.

IndexOf(
   item as String) as Integer

Parameters

item
The item to look for.

Returns

Integer
The index of the found element or -1 if not found.

Remarks

Note this is a linear lookup which is not very efficient. It is though much faster to use this operator than to try to do linear search externally.

See Also

StringArray Class