Ltrim - MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference

Cfml language reference
Table of Contents

Advertisement

Chapter 2: ColdFusion Functions

LTrim

Returns string with leading spaces removed.
See also
Syntax
LTrim( string )
string
String being left-trimmed.
Examples
<!--- This example shows the use of LTrim --->
<HTML>
<HEAD>
<TITLE>
LTrim Example
</TITLE>
</HEAD>
<BODY BGCOLOR=silver>
<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" METHOD="POST">
<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>
</BODY>
</HTML>
RTrim
and ToBase64.
TEST">
463

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion 4.5

Table of Contents