Macromedia coldfusion 4.5-cfml language reference User Manual

Page of 608
550
CFML Language Reference 
UCase
Returns string converted to uppercase.
See also 
LCase
.
Syntax
UCase(
string)
string
String being converted to uppercase.
Examples
<!--- 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.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" 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>