When I add a word with the edit text for example: Basic4android, my keyboard adds to the end of a word space. How can I check if you have added a space and prevent it from being added?
Here is one way I would do it to check if there is a space at the end and use the trim function to get rid of it:
B4X:
txtTest.Text="lock255 "
If txtTest.Text.SubString(txtTest.Text.Length-1)=" " Then
Msgbox(txtTest.Text & "You have a space at the end","") '1st time you get this
Else
Msgbox("no space","")
End If
txtTest.Text=txtTest.Text.Trim
If txtTest.Text.SubString(txtTest.Text.Length-1)=" " Then
Msgbox("You have a space at the end","")
Else
Msgbox(txtTest.Text & "no space","") '2nd time you get this
End If