You can easilly test for alphanumeric characters with a regexp of the RE class: https://www.codenameone.com/javadoc/com/codename1/util/regex/RE.html
On Friday, July 20, 2018 at 1:11:02 PM UTC+2, Muchey wrote: > > I am trying to validate where user's input is only Characters with symbols > excluded. Hence the need for method: isAlphabetic(). > > Reveiwed the Character class in CN1 and cant find method(s) with similar > functionality as isAlphabetic(). > > Negating isDigit() would allow symbols which is not required for the field > value. > > Any sample procedure, code snippet, method/class to achieve this would be > greatly appreciated! > > Thanks! > > On Friday, July 20, 2018 at 5:52:57 AM UTC+1, Shai Almog wrote: >> >> The Character class is supported but some methods aren't see the JavaDoc >> https://www.codenameone.com/javadoc/ >> >> Specifically https://www.codenameone.com/javadoc/java/lang/Character.html >> >> isDigit() is supported and should work. isAlphabetic isn't supported, >> it's a bit complicated with some of the more complex charsets out there. If >> you have a specific use case for it let us know. >> > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/0cbedc9e-3888-424f-87e0-fd79989bfee2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
