Find location of item in a list that partially matched to a string (search list by partial match)Can't find a good way of doing this task.
Let's say I have this:
list = {"big apple", "big orange", "big pear"};
string = "orange";How do I find a location of an item in the list that partially matches to the string?
ScriptingRe: Find location of item in a list that partially matched to a string (search list by partial match)Here is one way
Names Default To Here( 1 );
thelist = {"big apple", "big orange", "big pear"};
string = "orange";
found = 0;
For( i = 1, i <= N Items( thelist ), i++,
If( Contains( thelist[i], string ),
found = i;
Break();
)
);