Filtering one list out of another

Paul Hibbert paulhibbert at mac.com
Tue Dec 24 12:23:46 EST 2013


Thanks Dick,

I had that niggling feeling I was missing something, I totally forgot about wholeMatches, doing too many things at once I guess.

Paul

On 2013-12-23, at 11:17 PM, Dick Kriesel <dick.kriesel at mail.com> wrote:

> On Dec 23, 2013, at 6:19 PM, Paul Hibbert <paulhibbert at mac.com> wrote:
> 
>> …or am I missing something?
> 
> Yes, because of the way lineOffset works.  For example, if pListA is "12" and pListB is "2", then lineOffset(2,12) is 1, and an unintended delete occurs.  Avoid that by first setting the wholeMatches to true.  Then lineOffset(2,12) is 0.
> 
> -- Dick
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list