开发者

Validate an emailAddressfield in blackberry

How can i validate 开发者_StackOverflow社区an emailAddressfield in blackberry?

Thanks in advance, I'm a bit stuck.


Validating EMail addresses (format wise) is very hard, so hard, that one may consider to just don't do it. The recommendation is, at least, to not do it yourself but try to get a library for that task.

Here's a good article on SO about this topic.


If we are talking about Java Microedition basic validation is possible through TextField constrain parameter as TextField.EMAILADDR

Example TextField("Email", "", 100, TextField.EMAILADDR) However I would be wary of this as does check only for basic stuff

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜