Word counter crashing LiveCode?

Mark Wieder ahsoftware at sonic.net
Sat Aug 25 14:48:32 EDT 2018


On 08/25/2018 03:25 AM, Keith Clarke via use-livecode wrote:
> Folks,
> I’m working on a simple utility to count the most popular words in a text file but my current code runs for a while & then causes LiveCode to crash.

I would also do what Alex does there with an array. Your code doesn't 
crash here for me on linux, but I want to point out that this line won't 
do what you want anyway

>           if tWord is among the lines of tWords then

because the lines of tWords are of the form word,count rather than word.

-- 
  Mark Wieder
  ahsoftware at gmail.com




More information about the use-livecode mailing list