Performance

Chipp Walters chipp at altuit.com
Sun Jun 20 15:15:23 EDT 2010


Hi René,

Here is also another way to accomplish a similar task when you are trying to set the same property of many objects.

put "name,address,city,state,country" into tItems
repeat for each item I in tItems
   set the textfont of field I to "Verdana"
   set the fontsize of field I to 9
end repeat

Chipp Walters
CEO, Shafer Walters Group, Inc

On Jun 20, 2010, at 8:21 AM, René Micout <rene.micout at numericable.com> wrote:

> YES !
> That seems obvious when one sees !
> It is sometimes necessary to step aside to see what is right before us.
> Hartelijk dank
> 
> Le 20 juin 2010 à 15:15, Mark Schonewille a écrit :
> 
>> René,
>> 
>> repeat with i = 1 to 21
>> put "btnHarmo" & i into myBtn
>> set the backColor of btn myBtn to 89,149,218
>> end repeat
>> 
>> --
>> Best regards,
>> 
>> Mark Schonewille
>> 
>> Economy-x-Talk Consulting and Software Engineering
>> Homepage: http://economy-x-talk.com
>> Twitter: http://twitter.com/xtalkprogrammer
>> 
>> Subscribe to the Economy-x-Talk newsletter at http://qurl.tk/cj
>> Download Clipboard Link http://clipboardlink.economy-x-talk.com and share the clipboard of your computer over the local network.
>> 
>> On 20 jun 2010, at 15:07, René Micout wrote:
>> 
>>> 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
>>> 
>>> is array solution possible ?
>>> 
>>> or it is necessary to do :
>>> 
>>> set the backColor of btn "btnHarmo1" to 89,149,218
>>> set the backColor of btn "btnHarmo2" to 89,149,218
>>> set the backColor of btn "btnHarmo3" to 89,149,218
>>> ...
>>> ...
>>> set the backColor of btn "btnHarmo21" to 89,149,218
>>> 
>>> 
>> 
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the Use-livecode mailing list