B4A Question Edittext max length - Fausto Loss    
Nov 17, 2016Hi,
I want to have an Edit Text with a Character limit of 20. So after 20 characters have been entered, stop the typing.
Dim IME As IME
Dim edtTest As EditText
edtTest.Initialize("")
IME.Initialize("")
IME.SetLengthFilter(edtTest, 20)
I've tried using the above code...
link: Thanks man !!!! Works fine !!!...
link: you are getting nothing. The below code works.
Sub Globals
Dim IME As IME
Dim edtTest As EditText
End...
B4A Code Snippet EditText Max Length - aeric    
Feb 19, 2016More shorter code compared to here
Example:
Sub Globals
Dim txtPIN As EditText
End Sub
Sub txtPIN_TextChanged (Old As String, New As String)
If New.Length > 6 Then
txtPIN.Text...
link: Please start a new thread for this question.
Hi, I already created another thread.
Excuse me....
link: Please start a new thread for this question....
link: It is better to use IME.SetLengthFilter.
Note that in your code you should use New.Substring2(0, 6)...
B4A Question EditText max characters? - techknight    
Nov 17, 2015Is there a way to either set, or programmatically check the number of characters being entered durin...
link: Hi,
try this :
Dim IME As IME
Dim edtTest As EditText
edtTest.Initialize("...
link: Sounds simple enough....
link: there is a textChanged event that you can use to count the chars and if it's bigger than you lim...
B4A Question EditText Max Characters Limit - msdeveloper    
Nov 17, 2012Is there a way to limit the number of characters a user can enter into EditText? In VB6 I would use the MaxLength property....
link: Remove this event and use IME.SetLengthFilter instead....
link: If New.Length > 20Then EditText1.Text = New.Substring2(0, 20)
It Works, but spell checker still...
link: Thanks, I try that....
Wish EditText: Max text lenght - Fabio Vieira    
Feb 19, 2020I think it will be very useful if there was this property in the textbox object.
I know it is possible to use the IME to do this, but it would be more practical if this property exists in the designer....
Italian EditText MAX - RobyLaga (first post)    
Feb 15, 2019Trovato, grazie a tutti quelli che mi hanno aiutato!!
Copio e riporto:
Sub Globals
Dim IME As IME
Dim edtTest As EditText01
End Sub
'Scrivere all'interno dell'Activity_Create quanto segue
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout...
link: Ciao.
Dovresti usare la libreria IME:
https://www.b4x.com/android/help/ime.html#ime_setlengthfilter...
link: " un EditText che all'interno si possa scrivere al massimo 15 caratteri.
Grazie...
B4A Question EditText with numbers - Serge Bertet (first post)    
Jan 11, 2026   
(1 reaction)or using IME?
Private IME As IME
IME.SetLengthFilter(EditText, MaxLength)...
link:
This library is missing:
Private AS_WheelDateTimePicker1 As AS_WheelDateTimePicker
Yes sir, you wi...
link:
His libraries are always super reliable for me.
This library is missing:
Private AS_WheelDateTimeP...
link:
Many examples with wheels no longer work. Are there any examples where it would be possible to spin...
B4A Question customlistview loads max items and loads more when scroll tot bottom - m643    
Dec 16, 2013   
(1 reaction)Hi all,
I see in more and more apps that having a listview that loads for example 20 items and when you scroll down it loads another 20 items.
I am using now the customlistview class and that works great but I like the solutions that loads a max of items. I searched the forum but the only thing I found is the pull tot refresh class that is what I think simulair to this function. Unfortunately...
link: Add this sub to CustomListView:
Private Sub sv_ScrollChanged(Position As Int)
If Position + sv.Height >= sv.Panel.Height Then
If DateTime.Now > lastAddItemsTime + 200 Then
lastAd...
B4A Library [B4X] SD CustomKeyboard - Star-Dust (first post)    
Jan 2, 2023It's not a problem with my library. Follow this thread
https://www.b4x.com/android/forum/threads/edittext-max-characters-limit.23409/post-265247...
B4A Question set max number of char in a edit text - klaus (first post)    
Dec 17, 2018   
(2 reactions)This might interest you: EditText max length....
Page: 1  
2  
3  
4  
5  
6  
7