Hi
I want to check an .html (or TXT if thats easier) file with foxpro for this line:
src="cid:image001.jpg@01C67F47.26775C40"
and replace it with
src="image001.jpg"
how can I do this, I can't figure it out :(
Hi
I want to check an .html (or TXT if thats easier) file with foxpro for this line:
src="cid:image001.jpg@01C67F47.26775C40"
and replace it with
src="image001.jpg"
how can I do this, I can't figure it out :(
reading html file in foxpro
Suprotim Agarwal
Something like this:
local lcText
lcText = FILETOSTR("c:\temp\MyFile.HTM")
lcText = STRTRAN(lcText,[src="cid:image001.jpg@01C67F47.26775C40"],[src="image001.jpg"])
STRTOFILE(lcText,"c:\temp\MyNewFile.HTM")
Aaron Oneal
when I do that I get this error : Function argument value, type, or count invalid
HamzaNet
Did you mean you cannot see the error detail as it is in a popup (your message is not clear).
Open the Debugger (ex. SET STEP ON) then step through the code, line by line and see which line gives you an error.
Serj_M
The code is fine. You need to have the file named "c:\temp\MyFile.HTM", in our c:\temp folder. Else you will get error
Krishna
ScottMFG
malangpc
look at using :
STRTRAN() with
filetostr(), append from\type or alines()
Dave M.
JT Gartner
SuperM
> when I do that I get this error : Function argument value, type, or count invalid
On which line of code
JimboGT