gjoisa Active Member Licensed User Longtime User Jan 21, 2011 #1 How to limit the number of characters in an edit text view ?
Erel B4X founder Staff member Licensed User Longtime User Jan 21, 2011 #2 You can use the TextChanged event to check the length of the text. If the length is too large than truncate it using SubString. Upvote 0
You can use the TextChanged event to check the length of the text. If the length is too large than truncate it using SubString.
gjoisa Active Member Licensed User Longtime User Jan 21, 2011 #3 My intention is to limit while input itself . Particular edittext should accept and show only 2 characters . We did it in basic4ppc with the help of a dll . Can't we do it here ? Upvote 0
My intention is to limit while input itself . Particular edittext should accept and show only 2 characters . We did it in basic4ppc with the help of a dll . Can't we do it here ?
Erel B4X founder Staff member Licensed User Longtime User Jan 21, 2011 #4 I think that you will get the same behavior. When the user will try to enter any additional character, it will be automatically deleted. Upvote 0
I think that you will get the same behavior. When the user will try to enter any additional character, it will be automatically deleted.