Try this

<cfset value = "12/345,678">
<cfset value = Replace(value, "/", "-", "ALL")>
<cfset value = Replace(value, ",", "", "ALL")>

~~~~~~~~~~~~~~~~~~~~~
Rob Mulcahey
Programmer
James Tower
507-386-9380
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~


-----Original Message-----
From: Chris Giminez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 09, 2000 1:08 PM
To: [EMAIL PROTECTED]
Subject: replacing characters


How can I change a value of a variable with this format

12/345,678 
 
to this format

12-345678

I need to replace the / with a - and remove the comma.

Thanks,

Chris Giminez
Owner - Cyber Scriber Web Site Design
831-728-4469
ICQ# 2628000



----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to