I want to create an input that looks like 09/2012 (month/year) that looks the same way as BFTF.. When the user enters 2 signs, i add the "/" and he can type the rest.
I tried the following:
Sub ed_fz_tuev_TextChanged (Old As String, New As String)
If New.Length = 2 Then
New = New & "/"
ed_fz_tuev.Text = New
Dim et As EditText = ed_fz_tuev.TextField
et.SelectionStart = 3
End If
End Sub
That works .... but if i use the backspace from keybord, the "/" sign would not be deleted. I think "SelectionStart" is the reason ...
How can i manage this?
Is there a way for me to add the properties "SelectionStart" and "SelectionEnd" to B4XFloatTextField.bas ??