Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 170
Registered: ‎01-26-2009
My Device: Not Specified
Accepted Solution

Text length of TextField

Hello Everyone

 

Is there a way to get the length of the text entered in a textfield?

 

Thanks

Developer
Posts: 713
Registered: ‎05-31-2010
My Device: 8520
My Carrier: Movistar

Re: Text length of TextField

Sure!!

YourTextField.text.length()  or YourTextField.text.size()

Regular Contributor
Posts: 205
Registered: ‎06-11-2013
My Device: Blackbery z10
My Carrier: RIM

Re: Text length of TextField

Ya its right. What is your problem now?