[flexcoders] Best way to remove line breaks from Label text?

2010-05-12 Thread Baz
I have an s:Label whose text comes from a DB. What's the best way to
remove, or not show, any line breaks that may be in that text? I could use
another text element if that's easier/cleaner.

Thanks.


RE: [flexcoders] Best way to remove line breaks from Label text?

2010-05-12 Thread Gordon Smith
I would just use a RegExp to replace \r and \n with nothing or with a space.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Baz
Sent: Wednesday, May 12, 2010 11:39 AM
To: Google/Yahoo Groups
Subject: [flexcoders] Best way to remove line breaks from Label text?



I have an s:Label whose text comes from a DB. What's the best way to remove, 
or not show, any line breaks that may be in that text? I could use another text 
element if that's easier/cleaner.

Thanks.