Performance

Thierry th.douez at gmail.com
Sun Jun 20 09:19:34 EDT 2010


Le 20 juin 2010 à 15:07, René Micout a écrit :

> I have also this case : no variable but object (button) name :
> 
>   repeat with i = 1 to 21
>      put "set the backColor of btn" && quote & "btnHarmo"& i & quote && "to 89,149,218" into vxA ; do vxA
>   end repeat

meme effet que ton code, sans le DO, donc plus rapide
et surement plus simple a lire...

  repeat with i = 1 to 21
     set the backColor of btn ("btnHarmo"& i ) to 89,149,218
  end repeat


Cordialement
Thierry




More information about the Use-livecode mailing list