Listing all the unique words in a piece of text (Resource Center broken?)

Phil Davis revdev at
Fri Oct 1 01:18:20 EDT 2010

  Hi Mark,

It's not hard!

repeat for each word tWord in tYourtext
    add 1 to aWordCounts[tWord]
end repeat
put the keys of aWordCounts into tList
sort lines of tList
put tList

... but you probably figured this out by now.


On 9/30/10 8:17 PM, Mark Swindell wrote:
> There's a sample script in the LiveCode Resource Center called "listing all the unique words in a piece of text."  It's located under "Resource Center/Sample Scripts/Text/Listing all the ..."
> There's a button available to download the script.  Unfortunately it doesn't  appear to work and I can't peek into the actual button containing the script.
> I used both LiveCode and Rev Studio 4.0... same result.
> If anyone has a minute to look and see if this is consistent with their setup, I'd appreciate it.  (Or if anyone has the code, I'd appreciate getting it.)
> Thanks,
> Mark_______________________________________________
> use-revolution mailing list
> use-revolution at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Phil Davis

PDS Labs
Professional Software Development

More information about the Use-livecode mailing list