common code patterns

Mark Wieder ahsoftware at sonic.net
Thu Aug 10 16:20:22 EDT 2017


On 08/10/2017 10:38 AM, Ralph DiMola via use-livecode wrote:
> To make this even more flexible:
> 
> repeat for each line tLine in tLines with [counter] tIndex [start] [{1}|x]
> [step] [{1}|y]
>   
> end repeat

I would change the syntax slightly:

repeat for each line tLine in tLines [using tIndex [start [to end]]]
end repeat

but otherwise +1: I end up writing loops like this a lot.

-- 
  Mark Wieder
  ahsoftware at gmail.com





More information about the use-livecode mailing list