#Replace(code, "#chr(35)#", "", "ALL")#

sabrina

  ----- Original Message ----- 
  From: bfalloon 
  To: CF-Talk 
  Sent: Thursday, May 10, 2001 10:06 AM
  Subject: Replace #'s Function!!


  Hello all,

  I've encounter a stumbling block...

  I'm performing a CFFILE action to read a text document that contains HTML,
  but I need to remove any # symbols before I can used the code from the file.

  I've included my code below, but the # symbol always throws an error.
  I've also tried double pound signed, but that just seems to completely
  escape the symbol to replace.

  <cffile action="READ"
          file="d:\code.txt"
          variable="code">

  <cfset temp = "#code#">
  <cfset session.source = Replace(temp, "#", "", "ALL")>

  In the Replace function I am tried to replace all #'s with nothing...
  It's not working though.

  Your help is greatly appreciated!!

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