[Gambas-user] Parsing error with Replace$/Instr

richard terry rterry at ...1822...
Sun Jan 13 02:08:54 CET 2008


 I'Ive got thousands of old *.rtf letters which are in simple rtf format and 
very easy to parse. to convert them to html for display but I can't get the 
syntax correct, which should be simple:

Here is some for demo purposes of my code, which bombs with the error message:
"Bad character constant in string".

sResult = Replace$(alltext, "\plain\f3\fs24 \par }", "</body></html>")

iSpotInString= InStr(alltext, "\plain\f3\fs24\par")

Any idea's how to get around this/what I'm doing wrong?

Regards

Richard




More information about the User mailing list