filter not working

pwf paul.foraker at gmail.com
Fri Jul 3 15:39:39 EDT 2009


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.




More information about the use-livecode mailing list