Is there an example of the workaround to have a text box do proper case? I am getting the correct result with the code below in a message box, but how do I get the text box to accept the value along with the rest of what is being typed.
Thanks
B4X:
Sub Globals
Dim EditText1 As EditText
Dim edit_text As String
Dim first_char As Int
Dim upper_char As String
Dim txtLen As Int
Dim Final As String
End Sub
Sub EditText1_TextChanged (Old As String, New As String)
edit_text = EditText1.Text
first_char= edit_text.CharAt(0)
upper_char = first_char.ToUpperCase
txtLen = edit_text.Length
For i = 0 To txtLen -1
If i = 0 Then
Final = upper_char
Else
Final = Final & upper_char.CharAt(i)
End If
Next
Msgbox(Final,"")
End Sub
Last edited: