On 6/3/05, Christoph Guse <[EMAIL PROTECTED]> wrote:

> in my app I use TextInputs and Labels to show results given by remote
> objects. Sometimes a returned VO doesn't have a value, for example the
> name value is null. The TextInputs and the Labels show in this case
> "null". I coded a little function to prevent this:

[...]

> Is there a more elegant way to make TextInputs and Labels show nothing
> if a value bound to the text property is NULL?

Assuming you're using binding, you could use an expression like this:

 <mx:TextInput text="{obj.name == null ? '' : obj.name}" />


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to