Search This Blog

Monday, 3 December 2012

How to use Filters on TextField in Blackberry

Hello friends,
                   Here it is how to use filters on TextFields in Blackberry.


Code:

Supose we have a TextField "_ph"...

We want to display a numeric keyboard for this obviously....
So here it is....

_ph = new TextField(TextFilter.NUMERIC);

there are lots of options like email,Hexadecimal,Integer,IP etc...


Regards.

No comments:

Post a Comment