UCase Function

Tips >>ASP Functions

WANTS TO MAKE SOFTWARE WITHOUT KNOWLEDGE OF ASP? CLICK HERE

The UCase function converts a specified string to uppercase. The ASP UCase function is used to convert a string to upper case. The string argument of the UCase function can be any valid string. All lower case letters in the string passed as an argument to UCase are converted to upper case, while all upper case letters and special characters remain the same. Only lowercase letters are converted to uppercase; all uppercase letters and nonletter characters remain unchanged. The string argument is any valid string expression. If string contains Null, Null is returned.

Tip :- Also look at the LCase function.


The Syntax of the UCase function is :-

UCase(string)

Its Description is :-

Parameter Description
string Required. The string to be converted to uppercase

Example#1 :-

Code :-
dim txt
txt="This is a beautiful day!"
document.write(UCase(txt))
Output :-
THIS IS A BEAUTIFUL DAY!

Example#2 :-

Code :-
dim txt
txt="This Is a Beautiful Day!"
document.write(UCase(txt))
Output :-
THIS IS A BEAUTIFUL DAY!

Example#3 :-

Code :-
<%
sMyString = "ASP-Hosting.ca"
sUpperCaseString = LCase(sMyString)
Response.Write(sUpperCaseString)
%>
Output :-
ASP-HOSTING.CA

Example#4 :-

Before: Code: After:
small UCase("small") SMALL
Norway UCase("Norway") NORWAY
USA UCase("USA") USA

Example#5 :-

Code :-
<%
=UCase("Aardvarks do not make good pets!")
%>
Output :-
AARDVARKS DO NOT MAKE GOOD PETS!

 
E-mail : sales@virtualsplat.com
Phone : +91-9892413501

Whatsapp Icon +91-9967648641

Whatsapp Icon +91-9967648641