A chunking mystery
davidocoker at gmail.com
Sat Mar 15 22:10:28 EDT 2008
On Fri, Mar 14, 2008 at 2:01 AM, Jim Ault <JimAultWins at yahoo.com> wrote:
> > David Coker wrote:
> >> repeat for each line thisLine in tSource
> >> if item 2 of line 1 of tSource = "0" then
> >> delete line 1 of tSource
> >> end if
> >> end repeat
> I am not sure exactly what you are trying to but your repeat is not going to
> work the way you have it structured.
> First, if you want to use repeat for this, follow Phil's suggestions.
> Secondly, there may be an easier way to do the task I think you want.
> Assuming the itemDel is a tab then
> filter tSource without ("*" & tab & "0" & tab & "*")
> or commas
> filter tSource without ("*,0,*")
> --of course, this will delete lines with any 0 in item 2 through the second
> to last. This may or may not be a problem for your data set.
> Both methods are virtually instant, so don't worry about speed.
> Hope this helps
> Jim Ault
> Las Vegas
Thanks Jim for the heads up about how to use the "filter" command!
That's some territory I haven't ever been in and will now always
consider it for similar purposes.
One of the best lessons I'm learning with this is that there are just
so MANY different ways to do cool stuff in Rev, it's almost mind
Much appreciated sir,
More information about the Use-livecode