Ucase - MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference

Cfml language reference
Table of Contents

Advertisement

550

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>.
<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>
<CFOUTPUT>#UCase(FORM.sampleText)#
CFML Language Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion 4.5

Table of Contents