I need to check a line read from a file against the following string:
“Buchungstag”;“Umsatztag”;“Vorgang”;“Referenz”;“Buchungstext”;“Umsatz in EUR”;
I already found out that this
strTableHeaderLine = """Buchungstag"""
works and gives me “Buchungstag” as expected result. But this throws an error:
strTableHeaderLine = """Buchungstag";""""
However, constructing the string like this:
strTableHeaderLine = """Buchungstag""" + ";"
works. But is there another way to escape the " and ; signs in the string without re-constructing with + ?
7 posts - 5 participants