List Words from Textarea

Richard Gaskin ambassador at
Wed Oct 13 19:06:29 EDT 2010

Here's one from the LiveCode Resource Center included in the product (in 
the RC see Tutorials -> Text ->Listing all the unique words in a piece 
of text):

function uniqueWordsOf theString
   repeat for each word thisWord in theString
     add 1 to wordsList[thisWord] -- array variable
   end repeat
   return the keys of wordsList -- the list of words
end uniqueWordsOf

  Richard Gaskin
  Fourth World
  LiveCode training and consulting:
  Webzine for LiveCode developers:
  LiveCode Journal blog:

More information about the Use-livecode mailing list