Page 2 of 2

Posted: Sun Dec 30, 2012 5:51 pm
by BillB
I agree that the string that we want to search in should be the first argument to Index, and the string that we are searching for should be the second.

But don't we want to look for
'|':lnk_xfmr_target.CLASS:'|'
in
'|ARC|PPD|CCD|CTX|COR|DNE|'
and doesn't that make the original example correct?

Happy to be corrected :)

Posted: Sun Dec 30, 2012 6:49 pm
by chulett
LOL! And the correction is corrected...

It does get confusing because the concept of which one is the "string" and which one is the "substring" reverses when you go into this IN/NOT IN territory. Which made Harish's posted example work out properly in spite of his posted code being wrong - for the task at hand.

Good eye. :wink: