IndexOf()

Namespace ›› System ›› MfListVar ›› Methods ››
Parent Previous Next

IndexOf()

Searches for the specified var and returns the index of the first occurrence within the entire instance.
Overrides MfListBase.IndexOf()

OutputVar := instance.IndexOf(obj)

IndexOf(obj)

Searches for the specified var and returns the index of the first occurrence within the entire instance.

Parameters

obj

The var to locate in the MfListVar

Returns

Returns  index of the first occurrence of value within the entire instance.

Remarks

This method performs a linear search; therefore, this method is an O(n) operation, where n is Count.

If obj is a string var then contains will follow CaseSensitive.