Repeat bug???

Mark Smith mark at maseurope.net
Thu Feb 22 11:21:27 EST 2007


I've encountered this one, and it seems like a bug to me, though  
maybe there's an argument that it's correct behaviour.

My workaround is to always subtract the step value -1 from the limit:

repeat with itemIndex = 1 to the number of items in valueList - 3 step 4

Best,

Mark

On 22 Feb 2007, at 15:19, Dave wrote:

>
> Is this a bug?
>
> Thanks a lot
> All the Best
> Dave
>
> A stack with one button and one list field in it.
>
>
> on mouseUp
>   put  
> "00020120,40000804,00020120,40000804,00020120,40000804,00020120,400008 
> 04,00020120,40000804,00020120,40000804,00020120,40000804,00020120,4000 
> 0804," into myValueList
> 	
>  put the number of items in myValueList & cr after field 1
>   repeat with myItemIndex = 1 to number of items in myValueList step 4
>  put myItemIndex	 & cr after field 1
>   end repeat
> end mouseUp
>




More information about the use-livecode mailing list