Sub B4XFloatTextField1_TextChanged (Old As String, New As String)
If New.Length > B4XFloatTextField1.Tag Then 'the tag has the max number of characters
B4XFloatTextField1.Text = New.Substring2(0, B4XFloatTextField1.Tag)
Dim et As EditText = B4XFloatTextField1.TextField
et.SelectionStart = et.text.Length
End If
End Sub