Pete, you are correct. "Lines of the keys" are not sorted. Bob, thanks. I have not ever seen "element" used before. Interesting.
-= Mike Sent from my BlackBerry device on the Rogers Wireless Network -----Original Message----- From: Pete <p...@mollysrevenge.com> Sender: use-livecode-boun...@lists.runrev.com Date: Mon, 20 Feb 2012 13:59:48 To: How to use LiveCode<use-livecode@lists.runrev.com> Reply-To: How to use LiveCode <use-livecode@lists.runrev.com> Subject: Re: How to use an array to solve the following... I tend to use for each line in the keys also, mainly because element returns the contents of the array and I often find myself needing to know the key value. Plus if you need to get the array elements in key sequence, I think you have put the keys into a variable and sort them then base the repeat loop on the lines in the sorted variable... I think??? Pete On Mon, Feb 20, 2012 at 1:06 PM, <miked...@gmail.com> wrote: > Bob, > > Can you give a quick example of this? I have always used for each line in > the keys of array. > > Thanks > Mike > Sent from my BlackBerry device on the Rogers Wireless Network > > -----Original Message----- > From: Bob Sneidar <b...@twft.com> > Sender: use-livecode-boun...@lists.runrev.com > Date: Mon, 20 Feb 2012 13:02:12 > To: How to use LiveCode<use-livecode@lists.runrev.com> > Reply-To: How to use LiveCode <use-livecode@lists.runrev.com> > Subject: Re: How to use an array to solve the following... > > Also each element in <array> > > Bob > > > On Feb 20, 2012, at 10:34 AM, gcanyon+rev wrote: > > > any time you find yourself writing: > > > > repeat with i = 1 to the number of lines|words|items of someContainer > > > > stop. Rewrite it as: > > > > repeat for each line|word|item in someContainer > > > _______________________________________________ > 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 > _______________________________________________ > 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 > > -- Pete Molly's Revenge <http://www.mollysrevenge.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 _______________________________________________ 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