I encouter a problem when using the script provided in the lesson: How do I Search an Array?
Here:http://lessons.runrev.com/s/lessons/m/4 ... h-an-array
The function <function logarithmicSearch > work fine except it doesn't care for accentueted letters and for sign like "-".
For example a search in the list below will return good results for the words : <Aarhus,abaca,abaissa,abandonnas,enfer>
<à-pic,à-propos,Aarhus,abaca,abaissa,abandonnas,électricité,enfer>
But <à-pic,à-propos,électricité> won't be found.
I put the liste like that for the forum, but in fact it's an array, like in the example of the lesson.
I just add in the script of the function the following line:
Code: Select all
set the caseSensitive to TRUE
The array is already sorted correctly.
Any idea or advice will be much appreciated.
J-P.