FindOffset Function

Syntax

Number FindOffset(Array array, PropertyObject object, Boolean caseSensitive = True)

Return Value

Number

If the specified value found, returns the offset of the value. If the specified value not found, returns -1.

Parameters

array as Array

An array to search.

object as PropertyObject

Value to be searched.

caseSensitive as Boolean

For string arrays, pass True to use a case-sensitive comparison.