Lello1964 Well-Known Member Licensed User Longtime User Oct 4, 2016 #1 hello, I have this problem: I have an Android device with a numeric keypad and barcode reader. Unfortunately, the keyboard does not have the key "." The only button available in addition to the numbers is "*", how can I replace the "*" with "," or "." when pressed. Thanks. Raffaele
hello, I have this problem: I have an Android device with a numeric keypad and barcode reader. Unfortunately, the keyboard does not have the key "." The only button available in addition to the numbers is "*", how can I replace the "*" with "," or "." when pressed. Thanks. Raffaele
Erel B4X founder Staff member Licensed User Longtime User Oct 4, 2016 #2 Code: Copy Sub EditText1_TextChanged (Old As String, New As String) EditText1.Text = New.Replace("*", ".") End Sub Upvote 0
Code: Copy Sub EditText1_TextChanged (Old As String, New As String) EditText1.Text = New.Replace("*", ".") End Sub
Lello1964 Well-Known Member Licensed User Longtime User Oct 4, 2016 #3 Thanks Erel. But if i use this solution i have a loop in EditText1_TextChanged. Upvote 0
Lello1964 Well-Known Member Licensed User Longtime User Oct 4, 2016 #4 solved, thanks Erel. Sub Ed_nuova_giacenza_TextChanged (Old As String, New As String) If New.Contains("*") Then Ed_nuova_giacenza.Text = New.Replace("*", ".") Ed_nuova_giacenza.SelectionStart=Ed_nuova_giacenza.Text.Length End If End Sub Upvote 0
solved, thanks Erel. Sub Ed_nuova_giacenza_TextChanged (Old As String, New As String) If New.Contains("*") Then Ed_nuova_giacenza.Text = New.Replace("*", ".") Ed_nuova_giacenza.SelectionStart=Ed_nuova_giacenza.Text.Length End If End Sub