Is there a way to shorten this script? (100 graphics and 200 lines of text)
bobs at twft.com
Tue May 8 14:44:14 EDT 2012
That won't work either. See my updated repeat loop using div
On May 8, 2012, at 11:38 AM, Paul Dupuis wrote:
> repeat with i = 1 to 200 step 2
> put "d"&i into tObjectName
> set the backgroundcolor of grc tObjectName to the text of line i of fld "in"
> set the foregroundcolor of grc tObjectName to the text of line i+1 of fld "in"
> end repeat
> On 5/8/2012 2:32 PM, John Dixon wrote:
>> repeat with i = 1 to 200 step 2
>>> set the backgroundcolor of grc "d1" to the text of line i of fld "in"
>>> set the foregroundcolor of grc "d1" to the text of line i+1 of fld "in"
>>> end repeat
> Paul Dupuis
> Researchware, Inc.
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode