How to add double quotes in a string literal

前端 未结 7 1985
孤街浪徒
孤街浪徒 2021-01-17 15:09

Example code:

Dim a As String
a = 1234,5678,9123

I want to add literal double quotes to the variable a

Expected Output

7条回答
  •  旧巷少年郎
    2021-01-17 15:58

    If you want to include " in a string, supply "" where you want the quote to appear. So your example should read...

    a = """1234,5678,9123"""
    

提交回复
热议问题