1. Subclass TextArea so that you can access its textField, which is a protected var.
2. textField.numLines tells you how many lines there are. Loop over them.
3. For the ith line, call textField.getLineText(i) and push it into your array.
 
- Gordon


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin Dobler
Sent: Tuesday, November 07, 2006 2:27 PM
To: [email protected]
Subject: [flexcoders] splitting textarea lines into an array

Hi,

Does anyone has a nice solution for converting text in a textArea component into items of an array so that each line is an item of the array.

Thanx

Benz

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to