Android Question Test string and prevent emoticons

Stephen A Wolfe

Member
Licensed User
I'm writing my first B4A app and noticed one of my text fields allow me to enter emoticons, though the InputType is set to TEXT. What do I need to do to verify the string is text only? For my purposes, English only will work fine. I have been searching the forums but not finding exactly what I need.

Thanks in advance :)
 

Stephen A Wolfe

Member
Licensed User
Thanks for the quick response. I looked over that link and it looks like I should use the line of code:
B4X:
IME.SetCustomFilter(MainSearchString.INPUT_TYPE_TEXT, "0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZ")

But I get an error undeclared variable IME. Using something like Private IME As String does not seem to fix it.
 
Upvote 0
Top