How to convert a string to uppercase in ColdFusion

UCase() - convert a string to uppercase

UCase.cfm


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>UCase function example: how to convert a string to uppercase</title>
</head>

<body>
<h2 style="color:hotpink">UCase Function Example</h2>

<cfset TestString="My name is JONES">
<cfoutput>
<b>
TestString: #TestString#
<br />
TestString[uppercase]: #UCase(TestString)#
</b>
</cfoutput>
</body>
</html>





More ColdFusion examples