B4J Question UpperCase TextEdit

micro

Well-Known Member
Licensed User
Longtime User
Hi to All
I use this code for UpperCase Text insert:

B4X:
Sub TextEdit1_TextChanged (Old As String, New As String)
Dim i As Int
    i = TextEdit1.SelectionStart
    TextEdit1.Text = New.ToUpperCase
    TextEdit1.SetSelection(i, i)
End Sub

there is another better solution?
Thanks
 
Top