global gCodes
put tList into tGood; put tList into tBad
put "PPX,RRY,NNZ" into gCodes
-- Keep lines that contain any item of gCodes
filter tGood with ("*" & item 1 of gCodes & "*") or ("*" & item 2 of gCodes
& "*") or ("*" & item 3 of gCodes & "*")
filter tBad without ("*" & item 1 of gCodes & "*") or ("*" & item 2 of gCodes
& "*") or ("*" & item 3 of gCodes & "*")

Perhaps I should just loop through each line checking if it 'contains' one
of the codes instead?
Is there a better approach? <I'm sure there is>...

~Roger
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to