repeat . . . delimit by

Dr. Hawkins dochawk at gmail.com
Sun Sep 15 12:03:13 EDT 2013


On Sun, Sep 15, 2013 at 8:22 AM, Roger Eller <roger.e.eller at sealedair.com>wrote:

> So, what you want is to set the itemDel temporarily in the repeat, and
> return to the previous itemDel after end repeat. Is this correct?
>

Close:  I want the repeat to keep using the itemDel it started with,
notwithstanding any change in itemDel during the loop.

If I have strng containing

    A B C<tab>1 2 3

then
set the itemDel to tab
repeat for each item itm in strng
put itm
set the itemDel to space
put item 1 of itm
next repeat

Will put out
A B C
A

For the first iteration, but

1
1

for the second--it takes up parsing from the same point, but with the new
itemdDel

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



More information about the use-livecode mailing list