You need to set a variable, not just run the function.
<cfscript>
attributes.employee = Replace(attributes.employee, "-", "", "all");
</cfscript>
|-----Original Message-----
|From: Greg Wolfinger [mailto:[EMAIL PROTECTED]]
|Sent: Monday, March 19, 2001 3:43 PM
|To: CF-Talk
|Subject: crazy replace
|
|
|hey guys, anyone know what this isn't working. its been a
|while since i've been working with cold fusion.
|
|input: 384-29394-3928
|
|<cfscript>
| Replace(attributes.employee, "-", "", "all");
|</cfscript>
|
|output: 384-29394-3928
|
|I am trying to remove the dashes "-" from the employee number
|
|--=@ greg @=--
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists