line number in a for each repeat

Sarah Reichelt sarahr at genesearch.com.au
Thu Apr 21 21:48:04 EDT 2005


On 22 Apr 2005, at 8:35 AM, Thomas McGrath III wrote:

> Thanks, I did not know that the lineoffset would slow it down. In my 
> case i only have between 3 to 18 items to work with so speed should 
> not be affected. i will revisit my code and look at a counter method.
>
If you have a long list, it is faster to use repeat for each with a 
separate loop counter. If you know that the list will never be long, it 
is probably more efficient to use a standard counted loop e.g. repeat 
with x = 1 to 18

Cheers,
Sarah



More information about the use-livecode mailing list