filter not working
Mark Smith
lists at futilism.com
Fri Jul 10 11:16:06 EDT 2009
Paul, the filter command may need some wildcards, otherwise it will
filter out any lines which contain more than just the filter
expression, so:
filter pSnips with "*" & tThing & "*"
Best,
Mark
On 3 Jul 2009, at 20:39, pwf wrote:
> I am having a problem with 'filter'.
>
> I'm passing this tab & return delimited data (as an array)...
>
> *SAMPLE* 7/2/09 2 We don't ship kitties to Hong Kong
> No dogs 7/2/09 1 we don't do dogs
> This one 7/2/09 3 This one is that oneAnd this one has paragraphs in
> the field.
>
> using this command
>
> put justThese(gSnips,1) into tList
>
> to this function:
>
> function justThese pSnips,pWhich
> combine pSnips by return and tab
> put tab&pWhich&tab into tThing
> filter pSnips with tThing
> split pSnips by return and tab
> return the keys of pSnips
> end justThese
>
>
> which always returns empty because the filter command always puts
> empty back into the variable.
>
> What am I missing?
>
> I confirmed that the error still occurs without the numToChar(8)
> (which apparently won't show up here), which I'm using to swap out CRs
> in that third record.
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list