View comments | RSS feed
Contents > CFML Reference > ColdFusion Functions > LCase Next

LCase

Converts the alphabetic characters in a string to lowercase.

A string, converted to lowercase.

String functions

LCase(string)

UCase

Parameter

Description

string

A string or a variable that contains one

<h3>LCase Example</h3>

<cfif IsDefined("FORM.sampleText")>
   <cfif FORM.sampleText is not "">
   <p>Your text, <cfoutput>#FORM.sampleText#</cfoutput>,
   returned in lowercase is <cfoutput>#LCase(FORM.sampleText)#
   </cfoutput>.
   <cfelse>
   <p>Please enter some text.
   </cfif>
</cfif>

<form action = "lcase.cfm">
<p>Enter your text. Press "submit" to see it returned in lowercase:

<p><input type = "Text" name = "SampleText" value = "SAMPLE">
<input type = "Submit" name = "" value = "submit">
</form>

Contents > CFML Reference > ColdFusion Functions > LCase Next

ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6.1

Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.

Comments


lbryngel said on Feb 23, 2004 at 1:47 PM :
We are working to improve the examples in the ColdFusion reference pages. We propose to replace the current example on this page with the the following examples. If you have any comments on this example, add them to this page.

<h3>LCase Example</h3>

<cfif IsDefined("FORM.sampleText")>
<cfif FORM.sampleText is not "">
<cfoutput>
<p>Your text, <b>#FORM.sampleText#</b>, returned in lowercase is
<b>#LCase(FORM.sampleText)#</b>.</p>
</cfoutput>
<cfelse>
<p><b><i>Please enter some text.</i></b></p>
</cfif>
</cfif>

<p>Enter your text. Press "submit" to see it returned in lowercase: </p>

<form method="post" action = "<cfoutput>#cgi.script_name#</cfoutput>" name="lcaseForm">
<input type = "Text" name = "SampleText" value = "SAMPLE">
<input type = "Submit" name = "" value = "submit">
</form>
khorvath said on Oct 18, 2004 at 12:32 PM :
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functiob.htm#wp3715250

Commenting from your updating to improve samples.

Please beside showing the code, show what the example would look like...it's already on a page.
Thanks,
Kathy
jrunrandy said on Oct 18, 2004 at 1:08 PM :
Just copy it into a file, save it, and display it in a browser. That should do it.
khorvath said on Oct 19, 2004 at 7:11 AM :
Thank you for your instructions and replying to my suggestion. Please continue to consider my suggestion and not just have your answer be the end to this.

This solution is problematic for help in Dreamweaver since I can't 'copy' the code from the program to see it. I program normally with local developer to test things locally. So for every example I have to see, I have to completely (without errors) retype what I see on the screen.

I'm really new to programming and find I keep going to help to see if something in help that I might use. Since I can't see the output and can't copy it to the clipboard I can't always tell if this is what I should be trying.

You make it sound so simple. If it is, why can't it just be displayed on the help pages in the help files AND on-line? For every example I’m trying to see if this is what I want, it could be more easily displayed on the code example help page.

My suggestion is to implement this Simple sounding solution at dreamweaver o the program's help pages and on the on-line help pages. I just recently found the on-line pages.

So, for every example that I look at (which are a number since I don't know what codes to use) I have to go on line to try and find what I looked up in help, then copy it to see it, and then, if that's not right, go back and keep looking for examples and repeat the process.

As a manager, could you PLEASE, refer my suggestion to be implemented? Although my knowledge is limited, but growing, I'm trying to help others learn to program with Cold Fusion. I know there are MANY people that would benefit from this.

My new-ness is shown that when I add the comment, I thought it was going to comment on the previous note Macromedia and was surprised to see it displayed. But, glad that it was answered.

The above comment said:
"lbryngel said on Feb 23, 2004 at 1:47 PM :
We are working to improve the examples in the ColdFusion reference pages. We propose to replace the current example on this page with the the following examples. If you have any comments on this example, add them to this page. "

Since new examples will cause Macromedia employees to edit the page, why not also make a change to show the code in it's displayed format? Or better yet, if the pages are referenced from a database, add a field and copy the code into the field and arrange that it will display on the help page.

Thank you for considering my suggestion.

Kathy

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functiob.htm