find_replace() not working

new topic     » topic index » view thread      » older message » newer message
include std/search.e  -- find_replace() 
 
   
  sequence badbadchars = {"/"} 
  sequence title = "SCRs, SCR/Diode - Arrays" 
  sequence filteredtitle, junk 
   
  with trace 
   
  trace(1) 
   
  filteredtitle = title 
  for badloop = 1 to length(badbadchars) do 
    junk = badbadchars[badloop] 
    filteredtitle = find_replace(badbadchars[badloop],filteredtitle,"-",0) 
  end for 
  puts(1,filteredtitle&"\n") 
   
  trace(1) 


The badbadchar in filteredtitle is never replaced. Why?

also doesn't work if i use:

filteredtitle = find_replace({badbadchars[badloop]},filteredtitle,"-",0) 


useless

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu