RE: IDE bait and switch ;-)
I've wanted it since I started using LC with the loop by chunks(lines/items) concept. It's full form should also have start and increment. Repeat for each line tLine in MyVar index tIdxVar start 1 increment 2. This would be such a coding time saver and make for cleaner code. Doing the initialize and increment in C would be much faster than LCS. Anything to speed up loops would be helpful. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of J. Landman Gay via use-livecode Sent: Saturday, March 26, 2022 3:40 PM To: How to use LiveCode Cc: J. Landman Gay Subject: Re: IDE bait and switch ;-) On 3/26/22 10:26 AM, Paul Dupuis via use-livecode wrote: > An now I really want LC, Ltd. to add a "with tIndex" syntax to the repeat for each loop structure! That would be awesome. Feature request, maybe? -- 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 ___ 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
Re: IDE bait and switch ;-)
On 3/26/22 10:26 AM, Paul Dupuis via use-livecode wrote: An now I really want LC, Ltd. to add a "with tIndex" syntax to the repeat for each loop structure! That would be awesome. Feature request, maybe? -- 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
IDE bait and switch ;-)
So I was doing some coding today and in the IDE as you type a keyword, the syntax options popup. You can arrow down to the one you want and press tab to have the code template for the syntax filled in. I was typing a 'repeat for each..." loop when I notices the popup list of syntax options had a "... with index"! WOW, I thought, some new syntax was added to included an automatic counter variable with a 'for each' loop. This is great! I could really use a syntax like "repeat for each line tLine in container with index" where "index" gets auto incremented for each loop. I immediately opened the dictionary (LC 9.6.6) to check the syntax and usage and was surprised to find NO reference to the "with index" (apparent) syntax. Well, okay, sometime the Dictionary fails to get updated with the latest stuff, so I'll go back to the IDE and just try it! So I pick that syntax options and I get: put 0 into tIndex repeat for each line tLine in container add 1 to tIndex -- code end repeat Which, of course, is how we all do it. While it is nice the IDE syntax feature kindly placed this whole code snippet, I feel like a "Bait and Switch" was just pulled on me! An now I really want LC, Ltd. to add a "with tIndex" syntax to the repeat for each loop structure! ___ 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