pazzokli Active Member Licensed User Longtime User Oct 14, 2018 #1 Hi to all, how can I convert text all uppercase. for example Home --> HOME Thanks
DonManfred Expert Licensed User Longtime User Oct 14, 2018 #2 Code: Copy Sub ToUpper(text As String) As String Return text.ToUpperCase End Sub Upvote 0
npsonic Active Member Licensed User Oct 14, 2018 #3 You want to convert specific words or all text? Example if you want to convert specific words from some text. Code: Copy Sub ConvertToUpperCase (Target As String, Text As String) As String If Text.Contains(Target) Then Return Text.Replace(Target,Target.ToUpperCase) Return Text End Sub Upvote 0
You want to convert specific words or all text? Example if you want to convert specific words from some text. Code: Copy Sub ConvertToUpperCase (Target As String, Text As String) As String If Text.Contains(Target) Then Return Text.Replace(Target,Target.ToUpperCase) Return Text End Sub
Star-Dust Expert Licensed User Longtime User Oct 14, 2018 #4 Code: Copy MyString="home".ToUpperCase Code: Copy MyString=MyString.ToUpperCase Code: Copy Log(MyString) log(MyString.toUpperCase) Code: Copy MyString=EditText.Text.ToUppercase Code: Copy EditText.Text=EditText.Text.ToUppercase Last edited: Oct 14, 2018 Upvote 0
Code: Copy MyString="home".ToUpperCase Code: Copy MyString=MyString.ToUpperCase Code: Copy Log(MyString) log(MyString.toUpperCase) Code: Copy MyString=EditText.Text.ToUppercase Code: Copy EditText.Text=EditText.Text.ToUppercase