buzz44 Posted April 18, 2005 Share Posted April 18, 2005 (edited) When I first seen _ArrayBinarySearch () I was quite happy to know that I didnt have to search each array seperatly like...For $I = 0 To $Array If $avArray[$I] = "blah" Then ;Blah Blah EndIf NextBut it has just come to my attention that _ArrayBinarySearch () only matches the exact string, where as I thought it would be StringInStrI have a script where I need to seach a whole array but not specifiy which elements. Except I'm not looking for an exact match, I'm looking for a StringInStr.I need to some how make a fucntion or script that will allow me to use_ArrayBinarySearch() and StringInStr() so I can search for a string in an element of the array without searching through each element one by one.Edit: Ok, I think the Function will be pretty easy to make, only thing I'm having trouble is that I dont know the number of elements that will be inputed...eg, all the _Array() Functions like _ArrayDisplay() already now how many elements are in the array. Is there someway I can find this out? Edited April 18, 2005 by Burrup qq Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now