VB中常量字符串里要包含双引号怎么写

2024-11-28 06:29:17
推荐回答(3个)
回答1:

Const a = """Give the solution"",he said"
用两个双引号代替一个双引号
结果是"Give the solution",he said

回答2:

Const s$ = """这是常量""" & ",望采纳!"
Private Sub Form_Load()
    Debug.Print s
End Sub

回答3:

Const a As String = """123"""