goofy question about "repeat for each"

Brian Milby brian at milby7.com
Mon Mar 25 15:57:46 EDT 2019


Klaus is correct...
cc is not modified by changing j
I just did a quick test to verify.

Thanks,
Brian
On Mar 25, 2019, 3:31 PM -0400, 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