goofy question about "repeat for each"

Stephen Barncard stephen at barncard.com
Mon Mar 25 16:31:56 EDT 2019


what is the 'item-delimiter" in this case?  I don't see commas
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org


On Mon, Mar 25, 2019 at 12:31 PM jbv via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Hi list,
>
> I have a list of values such as :
>    540,20
>    542,22...
> one per line in a variable named cc.
>
> Now I'm running the following loop :
>     repeat for each line j in cc
>       add 1 to item 1 of j
>       put return & j after var2
>     end repeat
>
> goofy question : does each iteration of the loop
> change the values of each line of cc, or does it
> only change the value of j ?
>
> I'm asking because it seems that I am facing some
> weird and unexpected modifications in the variable
> with a huge number of lines...
>
> Thanks in advance.
> jbv
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list