Re: Repeat for each element failing

2018-08-13 Thread Bob Sneidar via use-livecode
No I mean when stating repeat for each element in myArray, can each element be arrays, but I know now that it can. I somehow via a code bug had an element that was empty. Since there was no key, repeat for each element choked. Bob S > On Aug 10, 2018, at 19:11 , dunbarxx via use-livecode >

Re: Repeat for each element failing

2018-08-10 Thread dunbarxx via use-livecode
My error. I meant: Are you speaking of the "warm" in myFavoriteColors["warm"]["red"] Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: Repeat for each element failing

2018-08-10 Thread dunbarxx via use-livecode
Bob wrote: "Is it legal to have arrays for the elements, or is it restricted to values? " Are you speaking of the "red" in myFavoriteColors["warm"]["red"] Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html _

Re: Repeat for each element failing

2018-08-10 Thread Bob Sneidar via use-livecode
Belay that apparently while troubleshooting and modifying code, one of the records in the datagrid had an empty key value. Bob S > On Aug 10, 2018, at 13:20 , Bob Sneidar via use-livecode > wrote: > > Hi all. > > I have an array of arrays (think dgData) and I am starting a repeat loop lik

Repeat for each element failing

2018-08-10 Thread Bob Sneidar via use-livecode
Hi all. I have an array of arrays (think dgData) and I am starting a repeat loop like this: repeat for each element aSiteRecord in aSiteData ... I verified aSiteData is an array of arrays (it's the dgData of my sites datagrid) but when stepping in the debugger it goes right to the next sta