UCase() converts letters in a string to uppercase, while LCase() converts letters to lowercase. Non-letter characters are left unchanged.
Dim my_string
my_string="Welcome to Plus2net.com"
Response.Write my_string
my_string=UCase(my_string)
Response.Write "<br>After changing to upper case = " & my_string
Welcome to Plus2net.com
After changing to upper case = WELCOME TO PLUS2NET.COM
my_string=LCase(my_string)
Welcome to Plus2net.com
After changing to lower case = welcome to plus2net.com
Case conversion can be useful before comparison or normalization, but do not change stored values merely to work around a comparison rule when the original casing matters.
Author & Instructor at plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery, and web development at plus2net. The tutorials focus on clear explanations, working examples, and code that readers can test and adapt while learning.