Stephen A Wolfe Member Licensed User May 22, 2018 #1 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
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
mangojack Expert Licensed User Longtime User May 23, 2018 #2 Possibly set a filter for your edit text .. see here Alpha-Numeric input filter .. . It requires inclusion of IME lib. Upvote 0
Possibly set a filter for your edit text .. see here Alpha-Numeric input filter .. . It requires inclusion of IME lib.
Stephen A Wolfe Member Licensed User May 23, 2018 #3 Thanks for the quick response. I looked over that link and it looks like I should use the line of code: Code: Copy 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
Thanks for the quick response. I looked over that link and it looks like I should use the line of code: Code: Copy 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.
Stephen A Wolfe Member Licensed User May 23, 2018 #4 mangojack said: Possibly set a filter for your edit text .. see here Alpha-Numeric input filter .. . It requires inclusion of IME lib. Click to expand... Thank you. I believe you helped me solve this. I figured out I need to declare it like this: Code: Copy Private IME1 As IME Then call IME1.... Upvote 0
mangojack said: Possibly set a filter for your edit text .. see here Alpha-Numeric input filter .. . It requires inclusion of IME lib. Click to expand... Thank you. I believe you helped me solve this. I figured out I need to declare it like this: Code: Copy Private IME1 As IME Then call IME1....