Thierry wrote: ↑Thu Aug 06, 2020 4:38 amHi, Thierry. You could delete the "replace" statement, and get the same results slightly faster. Or, does it have a benefit I don't see?
Code: Select all
put the monthNames into tMonthsArray replace CR with (TAB & CR) in tMonthsArray split tMonthsArray by CR and TAB repeat for each item aMonth in field "Month Data" add 1 to tMonthsArray[ aMonth] end repeat combine tMonthsArray using CR and TAB put tMonthsArray into field "Monthly Counts"
LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!