On 8/30/2014, 1:04 PM, Jerry Jensen wrote:
The dictionary says you shouldn't mess with tVar within the loop:

Pasted from the dictionary: "Important! In any of the for each loops,
you should not change the labelVariable or container in a statement
inside the loop. Doing so will not cause a script error, but will
almost certainly produce unexpected results".

If your method works every time, I guess the dictionary is out of
date once again. I also remember a post saying that changing the
labelVariable (L in this case) works OK, in spite of what the
dictionary says.

Mark Waddingham told me a while back that he didn't like that behavior so he changed it, but that it will fail unless you know exactly what you're doing, so he didn't update the dictionary.

Which is a way of saying, sometimes it will work and sometimes it won't. He didn't say what would fail, so I usually just avoid changing anything.

--
Jacqueline Landman Gay         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to