List Words from Textarea
Jim Lambert
jiml at netrin.com
Wed Oct 13 19:30:28 EDT 2010
Razvan wrote:
>
> How can I list every word from a textarea?
First, welcome Razvan!
In addition to Pierre"s and Richmond's suggestions, here's a few:
function getWordList someText
replace space with cr in someText
return someText
end getWordList
function getUniqueWordList someText
repeat for each word w in someText
if w is not among the lines of uniqueWord then put w & cr after uniqueWords
end repeat
-- AND JUST FOR THE HECK OF IT
sort uniqueWords
return uniqueWords
end getWordList
Jim Lambert
More information about the use-livecode
mailing list