repeat . . . delimit by

Dr. Hawkins dochawk at gmail.com
Sun Sep 15 11:14:59 EDT 2013


On Sat, Sep 14, 2013 at 5:14 PM, Roger Eller <roger.e.eller at sealedair.com>wrote:

> Would using a function do the trick?
>
> repeat for each item theDat in delimitBy(theData,vtab)
> do something
> end repeat
>
> function delimitBy pData,pDel
>     set the itemDel to pDel
>     return pData -- unaltered data
> end delimitB
>

Not if the repeat works the way I think it does . . .  I don't think that
the function would get called on each iteration.

What got me thinking was when I discovered that changing the itemDel to tab
inside my loop would cause the repeat to continue parsing with tab, not
vtabl


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462



More information about the use-livecode mailing list