Filter question, mismatched returns (solved)
Posted: Thu Oct 08, 2015 3:53 am
I'm using "filter" for the first time on a project and I'm wondering why the version with the wildcard returns the proper filtered list, but more than I really need (because of the wildcard)...
...and the version with just the word I'm looking for returns nothing, even though the matching item is there.
The function's using the first item to filter out a line from a variable so a following command can return the second line item:
The wildcard version will return (af,after) for (af*). The non-wildcard version will return nothing. I'm just wondering why that is happening so I can get a better idea of how "filter" works. Thanks.
Code: Select all
filter sSearchText with (aWord & "*") into tFilteredLines
Code: Select all
filter sSearchText with aWord into tFilteredLines
Code: Select all
aa,can
ab,about
af,after
ag,again
agt,against