Alphabetical List of ColdFusion Functions
UCase
Description
Returns string converted to uppercase.
Category
String functions
UCase(string)
Syntax
See also
LCase
Parameters
Parameter
string
Example
<!--- This example shows the use of UCase --->
<html>
<head>
<title>
UCase Example
</title>
</head>
<body bgcolor = silver>
<H3>UCase Example</H3>
<cfif IsDefined("FORM.sampleText")>
</cfif>
<form action = "ucase.cfm" method = "POST">
<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>
</body>
</html>
Description
String to convert to uppercase
<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>
637
Need help?
Do you have a question about the COLDFUSION 5 - CFML and is the answer not in the manual?