Feb 19, 2016 Replies: 5 More shorter code compared to here Example: Code: Sub Globals Dim txtPIN As EditText End Sub Sub txtPIN_TextChanged (Old As String, New As String) If New.Length > 6 Then txtPIN.Text = Old txtPIN.SelectionStart = Old.Length End If End Sub Click to expand...
More shorter code compared to here Example: Code: Sub Globals Dim txtPIN As EditText End Sub Sub txtPIN_TextChanged (Old As String, New As String) If New.Length > 6 Then txtPIN.Text = Old txtPIN.SelectionStart = Old.Length End If End Sub
Erel B4X founder Staff member Licensed User Longtime User Feb 21, 2016 #2 It is better to use IME.SetLengthFilter. Note that in your code you should use New.Substring2(0, 6) if you want to support paste actions.
It is better to use IME.SetLengthFilter. Note that in your code you should use New.Substring2(0, 6) if you want to support paste actions.
aeric Expert Licensed User Longtime User Feb 21, 2016 #3 Erel said: It is better to use IME.SetLengthFilter. Note that in your code you should use New.Substring2(0, 6) if you want to support paste actions. Click to expand... Thanks Erel
Erel said: It is better to use IME.SetLengthFilter. Note that in your code you should use New.Substring2(0, 6) if you want to support paste actions. Click to expand... Thanks Erel
Fausto Loss Member Licensed User Nov 17, 2016 #4 Erel said: It is better to use IME.SetLengthFilter. Note that in your code you should use New.Substring2(0, 6) if you want to support paste actions. Click to expand... Can show an example? How do I use ime? Thanks !!
Erel said: It is better to use IME.SetLengthFilter. Note that in your code you should use New.Substring2(0, 6) if you want to support paste actions. Click to expand... Can show an example? How do I use ime? Thanks !!
Erel B4X founder Staff member Licensed User Longtime User Nov 18, 2016 #5 Please start a new thread for this question.
Fausto Loss Member Licensed User Nov 18, 2016 #6 Erel said: Please start a new thread for this question. Click to expand... Hi, I already created another thread. Excuse me.
Erel said: Please start a new thread for this question. Click to expand... Hi, I already created another thread. Excuse me.