B4J Question how to set B4XFloatTextField max length

giannimaione

Well-Known Member
Licensed User
B4xFloatTextField is fantastic!

but how to set B4XFloatTextField max length ?

workaround, but this not like me!
B4X:
    B4XFloatTextField1.HintText="Type Here"
    B4XFloatTextField1.Tag=10 'max lenght
    B4XFloatTextField1.Update
and after
B4X:
Sub B4XFloatTextField1_TextChanged (Old As String, New As String)
    If New.Length > B4XFloatTextField1.Tag Then
        B4XFloatTextField1.Text = Old
    End If
End Sub
 
Top