Problems with Filter?
Rick Harrison
harrison at all-auctions.com
Sat Mar 12 18:25:24 EST 2022
Ok, that straightened out my confusion.
Thanks!
> On Mar 12, 2022, at 5:40 PM, Mark Wieder via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> Exactly. You want matchtext, not filter.
>
> There is a way to finesse this if you really need to use filter:
>
> local tSubString, tTarget, tLargeTextString
> local tResult
>
> put "*THIS*FIND*" into tTarget
> put "abcdef&cr&ghijkTHISISMYTEXTTOFINDlmnopq&cr&rstuvwxyz" into tLargeTextString
>
> filter tLargeTextString with tTarget
> set the itemDelimiter to "THIS"
> put item 2 of tLargeTextString into tSubString
> set the itemDelimiter to "FIND"
> put item 1 of tSubString into tResult
More information about the use-livecode
mailing list