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: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 LiveCode Journal blog: http://LiveCodejournal.com/blog.irv
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to