But this does not depend on the EditText being inside a CustomListview.
'Not tested
Private EditText1_TextChanged (Old As String, New As String)
If New.Length > 1 And New.As(Int) < 50 Then
xui.MsgboxAsync("At least 50", "B4X")
EditText1.Text = Old
End If
End Sub
Validate the minimum value with EditText1_TextChanged (Old As String, New As String) i always have the warns that the value is less than the minimum.
in your example:
- if ! want to write 272 in the editText, when i write the second digit (27) the EditText1_TextChanged event warns me that the value is less than the minimum.
- if i only write 2 in the editText i don´t have the validate error message.
Validate with EditText1_FocusChanged on in a xcustomlistview with lazy loading is not simple.
it's not worrying. i just have to live with it
Thank you for the reply.