List Words from Textarea

Alex Tweedly alex at tweedly.net
Wed Oct 13 16:52:07 CDT 2010


  Welcome Raz. Pierre's script gives you one good answer. When I read 
your email, I assumed you wanted to list each word - but avoid 
duplicates. To do that, you would change the script slightly, to

on mouseup
         set the wholeMatches to true
	repeat for each word w in fld "myfield"
		if w is not among the lines of mywordslist then put w&  cr after mywordslist
	end repeat
	answer mywordslist
end mouseup

-- Alex.

On 13/10/2010 20:18, Pierre Sahores wrote:
> Welcome to LiveCode Raz !
>
> on mouseup
> 	repeat for each word w in fld "myfield"
> 		put w&  cr after mywordslist
> 	end repeat
> 	answer mywordslist
> end mouseup
>
> HTH,
>
> Best,
>
> Pierre
>
>
> Le 13 oct. 2010 à 21:06, Razvan Pantescu a écrit :
>
>> I've started to study Livecode, don't know too much of it. I'm living about 250km north of Danube (Focsani, Romania)
>>
>> So any suggestions so I can read or list all the words from a Textarea?
>>
>>
>> Thanks,
>> Raz.
>>
>>
>>
>>
>>> Date: Wed, 13 Oct 2010 21:59:55 +0300
>>> From: richmondmathewson at gmail.com
>>> To: use-revolution at lists.runrev.com
>>> Subject: Re: List Words from Textarea
>>>
>>>   On 10/13/2010 09:57 PM, Razvan Pantescu wrote:
>>>> Hi,
>>>>
>>>> How can I list every word from a textarea?
>>>>
>>>> "put any word of field" - show any word, but exists some "every word"?
>>>>
>>>> Thank you,
>>>> Raz.
>>>>
>>>>
>>> Wow; at least one other LiveCode / RunRev programmer in the Balkans;
>>> there's hope yet!
>>>
>>> How far north of the Danube do you live?
>>>
>>> sincerely, Richmond Mathewson (Plovdiv, Bulgaria).
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 		 	   		_______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> --
> Pierre Sahores
> mobile : (33) 6 03 95 77 70
>
> www.woooooooords.com
> www.sahores-conseil.com
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list