Repeat with slow on iOS?

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


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.

repeat with x=1 to 100
     put "a"&x into tVeld
     enable fld tVeld
     put empty into fld tVeld
end repeat
set the backgroundcolor of fld tVeld to white

~Roger



More information about the Use-livecode mailing list