S Steve-h Member Dec 6, 2021 #1 Is there a simple cross platform numeric only keyboard lurking in one of the standard libraries ?
Erel B4X founder Staff member Licensed User Longtime User Dec 6, 2021 #2 B4XInputTemplate and B4XPreferencesDialogs will reject none valid values and might be relevant. This custom numpad was created before the various cross platform features were available: https://www.b4x.com/android/forum/threads/customview-numpad.64191/#content I guess that it shouldn't be too difficult to convert it to B4J. Upvote 0
B4XInputTemplate and B4XPreferencesDialogs will reject none valid values and might be relevant. This custom numpad was created before the various cross platform features were available: https://www.b4x.com/android/forum/threads/customview-numpad.64191/#content I guess that it shouldn't be too difficult to convert it to B4J.
behnam_tr Active Member Licensed User Longtime User Dec 7, 2021 #4 also you can use this code TextField Numeric Input only Hi all Here is how I handle numbers only input for a text field. Sub txtField_TextChanged (Old As String, New As String) Dim update As Boolean Try Dim text As String = Regex.Replace("\D",New,"") If New text Then update = True End If Catch... www.b4x.com Upvote 0
also you can use this code TextField Numeric Input only Hi all Here is how I handle numbers only input for a text field. Sub txtField_TextChanged (Old As String, New As String) Dim update As Boolean Try Dim text As String = Regex.Replace("\D",New,"") If New text Then update = True End If Catch... www.b4x.com