TRIM

I l @ ve RuBoard

Used to remove excess white space from the beginning and end of variables .

Syntax

 Trim(name_of_variable_to_be_trimmed) 

Parameters

Trim needs to have the name of the variable you want to clean up.

Example

 <!--- Clean up form value before database insert --->  <cfquery name="userinfo" datasource="users"?   INSERT INTO tblUser (     Fname,     Lname   )   VALUES(     '#Trim(form.Fname)#',     '#Trim(form.Lname)#'   ) </cfquery> 
I l @ ve RuBoard


Macromedia ColdFusion 5. Training from the Source
Macromedia ColdFusion 5 Training from the Source (With CD-ROM)
ISBN: 0201758474
EAN: 2147483647
Year: 2002
Pages: 99
Authors: Kevin Schmidt

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net