Ltrim - MACROMEDIA COLDFUSION MX 61-CFML Reference

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

LTrim

Description
Removes leading spaces from a string.
Returns
A copy of the string, without leading spaces.
Category
Display and formatting
Function syntax
LTrim(string)
See also
RTrim,
ToBase64
Parameters
Parameter
string
Example
<h3>LTrim Example</h3>
<cfif IsDefined("FORM.myText")>
<cfoutput>
<pre>
Your string:"#FORM.myText#"
Your string:"#LTrim(FORM.myText)#"
(left trimmed)
</pre>
</cfoutput>
</cfif>
<form action = "ltrim.cfm">
<p>Type in some text, and it will be modified by LTrim to remove
leading spaces from the left
<p><input type = "Text" name = "myText" value = "
<p><input type = "Submit" name = "">
</form>
functions,
String functions
Description
A string or a variable that contains one
TEST">
LTrim
623

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents