Converts the alphabetic characters in a string to uppercase.
A copy of a string, converted to uppercase.
UCase(string)
| Parameter | Description |
|---|---|
| string |
A string or a variable that contains one |
<h3>UCase Example</h3>
<cfif IsDefined("FORM.sampleText")>
<cfif FORM.sampleText is not "">
<p>Your text, <cfoutput>#FORM.sampleText#</cfoutput>,
returned in uppercase is <cfoutput>#UCase(FORM.sampleText)#</cfoutput>.
<cfelse>
<p>Please enter some text.
</cfif>
</cfif>
<form action = "ucase.cfm">
<p>Enter your sample text, and press "submit" to see the text returned in
uppercase:
<p><input type = "Text" name = "SampleText" value = "sample">
<input type = "Submit" name = "" value = "submit">
</form>
ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6
Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt2110.htm
Comments
Anubis^HH said on Oct 22, 2003 at 1:33 PM : No screen name said on May 4, 2004 at 11:57 AM : dannymather said on Sep 15, 2004 at 2:24 PM : blewington said on Mar 22, 2005 at 1:02 PM : hotani said on May 11, 2005 at 3:42 PM : No screen name said on Apr 30, 2007 at 3:05 PM :