uCase
Description
Converts the alphabetic characters in a string to uppercase.
Categories
Related
Syntax
UCase(string)
Attributes
| Attribute | Description | Required | Default |
|---|---|---|---|
| string | A string or a variable that contains one |
Returns
A copy
of a string, converted to uppercase.
Example
<h3>UCase Example</h3>
<cfif IsDefined("FORM.sampleText")>
<cfif FORM.sampleText is not "">
Your text, <cfoutput>#FORM.sampleText#</cfoutput>,
returned in uppercase is <cfoutput>#UCase(FORM.sampleText)#</cfoutput>.
<cfelse>
Please enter some text.
</cfif>
</cfif>
<form action = "ucase.cfm">
Enter your sample text, and press "submit" to see the text returned in
uppercase:
<input type = "Text" name = "SampleText" value = "sample">
<input type = "Submit" name = "" value = "submit">
</form>