PDA

View Full Version : Solved: Embedding double quotes in a string



MWE
10-25-2005, 07:16 PM
This must be very easy, but ...

How do you embed double quote, i.e., ", in a text string. For example, assume
strVal = "abc" but what I really want is to stuff ""abc"" into strVal so that when I display strVar, I see "abc" including the double quote marks.

Thanks

xCav8r
10-25-2005, 08:18 PM
You can insert double quotation marks in one of the two following ways:

strVal = """abc"""
' or
strVal = chr(34) & "abc" & chr(34)


:)