04-26-2007 09:28 AM
04-26-2007 09:33 AM
04-26-2007 09:45 AM
I cannot see the problem.
Please attach a small program containing useful defaults in all controls.
Let us know
I believe that if you have an arrray containing the strings [1,3,13] and a string of "13", 0 is the correct index result. Is that what you are doing?
(Element 0 of the array is the first element that matches the beginning of "13" (the "1"!), so the output string="3" and index=0.)
04-26-2007 09:57 AM
04-26-2007 10:00 AM
04-26-2007 10:06 AM
This is a confusing function the first time you look at it. I came across it when I wanted to do the opposite and find the first element of an array whose beginning matched some string input. For example, if my array was [123,456,789] and my string was 12, I wanted 123 to be returned. Easy enough to code, but i was looking for a function that did it. I digress.
As has been said, Match First String is doing exactly what it's supposed to do.
04-26-2007 10:14 AM