You need to say:

  attributes.employee = Replace(attributes.employee, "-", "", "all");

Bob
-----Original Message-----
From: Greg Wolfinger [mailto:[EMAIL PROTECTED]]
Sent: 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

Reply via email to