[SOLVED] Something is not right with my data

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!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

rkriesel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 89
Joined: Thu Apr 13, 2006 6:25 pm

Re: [SOLVED] Something is not right with my data

Post by rkriesel » Sat Aug 08, 2020 12:16 am

Thierry wrote:
Thu Aug 06, 2020 4:38 am

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"
 
Hi, Thierry. You could delete the "replace" statement, and get the same results slightly faster. Or, does it have a benefit I don't see?
-- Dick

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”