Word counter crashing LiveCode?

J. Landman Gay jacque at hyperactivesw.com
Sat Aug 25 14:22:58 EDT 2018


On 8/25/18 6:04 AM, Alex Tweedly via use-livecode wrote:
> 
> 
> On 25/08/2018 12:01, Alex Tweedly via use-livecode wrote:
>> Not sure why yours is crashing, and I admit I haven't really looked 
>> closely :-)

I'm trying to figure out why it crashes too.

> on mouseUp
>     local tSource, tNoise, tWords
>     local tANoise, tAWords
>     put the text of fld "fSource" into tSource
>     put the text of fld "fNoise" into tNoise
>     repeat for each word W in tNoise
>        put true into tANoise[W]
>     end repeat

<snip>

There might be a marginal speed uptick if you replace that repeat loop 
with: split tNoise by cr as set

Although after the recent discussion about arrays vs. chunks, maybe not.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com





More information about the use-livecode mailing list