common code patterns
Ralph DiMola
rdimola at evergreeninfo.net
Thu Aug 10 12:25:56 EDT 2017
Monte,
I find that I do this quite often
local tIndex
put 1 into tIndex
repeat for each line tLine in tLines
add 1 to tIndex
end repeat
What would be very help full is the construct:
repeat for each line tLine in tLines index tIndex
end repeat
This eliminates 3 lines.
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 Monte Goulding via use-livecode
Sent: Thursday, August 10, 2017 6:01 AM
To: How to use LiveCode
Cc: Monte Goulding
Subject: common code patterns
Hi Folks
I’m looking for a few common code patterns that you find yourselves writing often but aren’t well suited to reusable handlers. So snippets of code or common ways that events are handled together in a script for a certain task.
Cheers
Monte
_______________________________________________
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