Hello all, I have been trying to limit text input in the TextField but failed. And here are my codes :
The above code doesn't seems to work. Is there any other option to do this? Thanks
B4X:
Private Sub sEditTxt_TextChanged (Old As String, New As String)
If New.Length>=sTextLen Then
sEditTxt.Text=Old
sEditTxt.SetSelection(sEditTxt.Text.Length,0)
End If
End Sub
The above code doesn't seems to work. Is there any other option to do this? Thanks