Repeat with slow on iOS?

Roger Eller roger.e.eller at sealedair.com
Fri Aug 12 16:48:33 EDT 2011


On Fri, Aug 12, 2011 at 4:46 PM, Roger Eller wrote:

> On Fri, Aug 12, 2011 at 3:38 PM, William de Smet wrote:
>
>> Hi there,
>>
>> Is 'repeat with' slow on iOS?
>> I notice a 1 or 2 second delay time on my iPad after clicking the button.
>> On the desktop however everything is really fast.
>> I just do this in a button:
>>     repeat with x=1 to 100
>>      put "a"&x into tVeld
>>      enable fld tVeld
>>       put empty into fld tVeld
>>       set the backgroundcolor of fld tVeld to white
>>    end repeat
>>
>> Is there maybe another (faster) way to do this on iOS?
>>
>> groeten,
>> William
>>
>>
> I wouldn't include code inside the repeat that only needs to happen once,
> like setting the backColor.
>
> ~Roger
>
>

Please ignore me.  I didn't notice that you are actually changing the color
of 100 fields.  Sorry.

~Roger



More information about the use-livecode mailing list