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
rdim...@evergreeninfo.net

-----Original Message-----
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of dunbarxx via use-livecode
Sent: Thursday, August 23, 2018 9:46 AM
To: use-revolut...@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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

Reply via email to