I thought I could replace data in a file directly with the replace command. But nothing happens. I also get no error information.
Any ideas? Below is the code snippet I made.
Variable tFileURL holds the Path and filename e.g. C:/foldername/filename.html
variable tGraphLabel holds the name of the graphic that should replace ***GraphicLabel*** in the file
Code: Select all
put quote&" file: "&tFileURL"e into tURLInfo
try
replace "***GraphicLabel***" with tGraphLabel in URL tURLInfo
catch tError
end try
Paul