I have array like next:
Function to checkout is element in array is:
When checking out "ws1" — it is found at the 3rd place in array (weird of course).
1. Is it attitude of Filter used in func IsInArray?
2. Is it global bug in arrays?
3. How to solve this problem?
Thanks in advance, Nyk.
Code:
arr=Array("ws2","ws3","ws11")
Code:
Function IsInArray(valToBeFound As Variant, Arr As Variant) As Boolean
IsInArray = (UBound(Filter(Arr, valToBeFound)) > -1)
End Function
1. Is it attitude of Filter used in func IsInArray?
2. Is it global bug in arrays?
3. How to solve this problem?
Thanks in advance, Nyk.