Try:

<cfset temp = "12/345,678">

<cfset temp2 = "#Replace(temp, ",", "", "ALL")#">

<cfset temp = "#Replace(temp2, "/", "-", "ALL")#">

-----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