This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' returns the index of obj in array. obj can be anything. Returns -1 if not found. | |
Function inArray(arr, obj) | |
On Error Resume Next | |
Dim x: x = -1 | |
If isArray(arr) Then | |
For i = 0 To UBound(arr) | |
If arr(i) = obj Then | |
x = i | |
Exit For |