Can anyone offer any advice as to why I cannot get the editText_TextChanged event to show any new text that is entered into the field. The Old text changes but not the new. I am basically wanting to count how many characters are in the field by keeping a count but cannot make the count increment, only decrement as is shown by code and log snippets as "New" does not update.
Also tried the CharCounter (Ver 1.00) Library and that always returns a count of zero??
Am using version 3.82 of B4a
Log as follows for below code. Basically just logging each time I hit a character (3 of them) and using the backspace to delete.
0 and then new 0 ' a showing in edtText field at this point
1 a and then new 0 ' ab showing
2 ab and then new 0 ' abc showing
3 abc and then new 0 ' ab showing after backspace
2 ab and then new 0 ' a showing
1 a and then new 0 ' nothing showing
Given I am a newbie probably something simple I am doing wrong ;-)
Also tried the CharCounter (Ver 1.00) Library and that always returns a count of zero??
Am using version 3.82 of B4a
Log as follows for below code. Basically just logging each time I hit a character (3 of them) and using the backspace to delete.
0 and then new 0 ' a showing in edtText field at this point
1 a and then new 0 ' ab showing
2 ab and then new 0 ' abc showing
3 abc and then new 0 ' ab showing after backspace
2 ab and then new 0 ' a showing
1 a and then new 0 ' nothing showing
Given I am a newbie probably something simple I am doing wrong ;-)
B4X:
Sub edtText_TextChanged (Old As String, New As String)
' Ascending.Update(Old, New)
Log(sf.Len(Old) & " " & Old & " and then new " & sf.Len(New) & " " & New)
End Sub