I am trying to create a html file out of a database, and I have problems escaping this line "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"
Full code:
Dim filer As Integer, paths As String
filer = FreeFile
paths = App.Path + "\DB"
Open paths + "\test.html" For Output As #filer
'...
Print #filer, "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"
'...
Close #filer
I don’t know why it appears in red and don’t let me create the .exe to even run it
Your problem is that you’re trying to escape double quotes the same as you would in perl or c++.
Try using the crazy MS double double quotes.
Like so:
OR
EDIT:
Corrected Quotes.
"hello "" BOB"=Hello " Bob"""Hello "" BOB"""="Hello " BOB"