Set the backgroundcolor of all lines a field to null

Ralph DiMola rdimola at evergreeninfo.net
Thu Aug 23 10:12:45 EDT 2018


What would be very convenient would be an "index" option for the repeat
construct. I have to add this index counter all the time.

Repeat for each line tLine in tLines index tIndex

tIndex would start at 1 and increment by 1 for each iteration.
 

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of dunbarxx via use-livecode
Sent: Thursday, August 23, 2018 9:46 AM
To: use-revolution at lists.runrev.com
Cc: dunbarxx
Subject: Re: Set the backgroundcolor of all lines a field to null

We are all happy with the speedy "repeat for each..." construction.

But there are times when the good ol' "repeat with..." construction, which
manages a counting index internally, is just the right way to do things. The
line number is at the ready with each iteration.

Craig



--
Sent from:
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list