MACROMEDIA COLFUSION MX 7-CFML Reference page 829

Cfml reference
Hide thumbs Also See for COLFUSION MX 7-CFML:
Table of Contents

Advertisement

RTrim
Description
Removes spaces from the end of a string.
Returns
A copy of string, after removing trailing spaces.
Category
String functions
Function syntax
RTrim(string)
See also
,
LTrim
Trim
Parameters
Parameter
string
Example
<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>Enter some text. It will be modified by Rtrim to remove spaces from the
right.
<p><input type = "Text" name = "myText" value = "TEST
<p><input type = "Submit" name = "">
</form>
Description
A string or a variable that contains one
">
RTrim
829

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents