Returns string with trailing spaces removed.
RTrim(string)
| Parameter |
Description |
|---|---|
| string |
String to right-trim |
<!--- This example shows the use of RTrim --->
<html>
<head>
<title>
RTrim Example
</title>
</head>
<body bgcolor = silver>
<H3>RTrim Example</H3>
<cfif IsDefined("FORM.myText")>
<cfoutput>
<PRE>
Your string: "#FORM.myText#"
Your string: "#Rtrim(FORM.myText)#"
(right trimmed)
</PRE>
</cfoutput>
</cfif>
<form action = "Rtrim.cfm" method = "POST">
<P>Type in some text, and it will be modified by Rtrim to remove
leading spaces from the right
<P><input type = "Text" name = "myText" value = "TEST ">
<P><input type = "Submit" name = "">
</FORM>
</body>
</html>