开发者

Related to blackberry application development

开发者 https://www.devze.com 2023-02-27 11:09 出处:网络
I have an edit field and I wantto 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.n

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

精彩评论

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