SQL PHP HTML ASP JavaScript articles and free scripts to download

Changing text from lower case to upper case and vise versa in ASP

We can change the case of the text present inside a string from lower to upper case or from upper case to lower case letters. There are built in libraries available to handle or change cases of characters present inside a string. To change all the lower case letters to upper case we have to use Ucase() function, same way to change all upper case text present in the string to lower case we have to use Lcase() function.

Let us start with our example of changing the lower case letter to upper case letter. Here is the code

Dim my_string
my_string="Welcome to Plus2net.com"
Response.Write ( my_string )
my_string=Ucase(my_string)
Response.Write "
After changing to upper case = " & my_string

The output of above code is here

Welcome to Plus2net.com
After changing to upper case = WELCOME TO PLUS2NET.COM

Now let us try with Lcase() function. Here is the example ( of changed line only. )

my_string=Lcase(my_string)



The output of this command is here

Welcome to Plus2net.com
After changing to upper case = welcome to plus2net.com


Google+

Further readings
ASP functions to handle string
Adding two or more strings in ASP
Getting the size or length of the string by using len() function
Removing blank space before and after a string using trim function
Changing lower to upper or upper to lower case of text present inside a string
Reversing a string variable by using StrReverse function
Compare two strings in different ways by using StrComp function
Collecting parts from Left , right and middle areas of a string
Checking matching of a string inside another string using InStr function
Searching and replacing strings inside another string using Replace function
Creating arrays by splitting string using split() function
Joining elements of an array to create a string variable
Line Break by replacing text line break to html line break using Replace function
Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked



Join Our Email List
Email:  
For Email Newsletters you can trust
HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us

©2000-2014 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer