Android Question Keypress replace

Lello1964

Well-Known Member
Licensed User
Longtime User
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
 

Lello1964

Well-Known Member
Licensed User
Longtime User
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…