How to deal with double quotes in string variable
Hi - I have several string variables that require double quotes within the string. These strings are making their way into a datatable that I export at the end of my workflow. I'm probably missing something small here, but every time I try and format the string to add quotes, I either get an error, or it adds quotes on either end of my string in my output file. I've tried replacing the quotes with different characters, then replacing those characters with quotes at the end of my workflow using a string.Replace method, but I still get the same result (with quotes on the start/end of my string). I've also tried using the double-quotes around my quotes with no success. Should my string variables be in a different format to accomodate for double quotes? Or do I need to structure it a certain way? Any advice would be greatly appreciated!
Thanks,
Andrew
-
Sorry I should add I'm working with XML tags, so that might help explain my troubles.
0 -
I got around this problem by using single quotes...if anyone is wondering as well.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare