开发者

Related to blackberry application development

I have an edit field and I want to use it for numeric value.

Can anyone tell me how to enter only numeric v开发者_开发技巧alue in edit field, I want to use it for phone number. I used BasicEditField.numeric but didn't work.

I also want to validate it in proper format....ddd-ddd-dddd.


Have you tried the BasicEditField with FILTER_PHONE? Example can be found here.

I've never seen anything you could use for validation you need in the BB API. RegExps are not supported in BB API, so you'll most likely have to write your own validator.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜