giannimaione Well-Known Member Licensed User Longtime User Sep 20, 2019 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Sep 22, 2019 #2 See my answer here: https://www.b4x.com/android/forum/threads/how-to-set-b4xfloattextfield-max-length.109769/ There is no similar length limit in B4J. Upvote 0
See my answer here: https://www.b4x.com/android/forum/threads/how-to-set-b4xfloattextfield-max-length.109769/ There is no similar length limit in B4J.