ASP Vbscript LCase String Function

Updated on 14 Jul 2009, Published on 04 Aug 2008

Vbscript LCase string function provides the functionality to convert the string to lowercase in ASP web pages. Using vbscript LCase function, you can convert the string containing lower case and upper case letters to lowercase completely. Vbscript LCase function keeps the lowercase characters unchanged and converts the uppercase characters in the provided string to lowercase. Specify the string expression value for vbscript variable and pass the variable to LCase string function to get the string in lowercase.

Classic ASP VbScript String Functions Examples:

You can see the live samples and examples of Classic ASP VbScript String functions from the following links:

Syntax for ASP Vbscript LCase String Function

LCase( string )

LCase function accepts the string type value or vbscript variable having string type value containing both lowercase and uppercase letters that you want to convert into lowercase completely.

Examples of ASP Vbscript LCase String Function

Example 1:

<%
Dim myString

myString = "LCase String Function"

Response.Write(LCase(myString))

%>

Example 2:

<%
Dim myString

myString = "LCASE STRING FUNCTION"

Response.Write(LCase(myString))

%>

Vbscript LCase function converts only uppercase letters to lowercase. All other characters such as numeric digits and special characters including punctuation marks remain unchanged. LCase function performs action only on English alphabetical characters.

Output:

You can see the output of above discussed code from the following link:

String LCase Function

Continue to next tutorial: ASP Vbscript UCase String Function to learn how to convert the letters of a string to Upper Case.

0 Responses to "ASP Vbscript LCase String Function"
Leave a Reply

Name   (Required)


Mail   (will not be published) (Required)


Website   (http://www.example.com)




OR Subscribe via Email: