Go to: Articles List

Converting to upper and lower case

Two functions involved: LCase() and UCase(). Both work the same, pass in the string variable and they return the modified string. See examples below:

Example:

myVar = "UPPERCASE"
Response.Write(LCase(myVar))

Result:

Prints out "uppercase" (without quotes).

myVar = "lowercase"
Response.Write(UCase(myVar))


Result:

Prints out "LOWERCASE" (without quotes).