Private Sub Command1_Click()
Dim a As String
a = "abc" & _
"123"
Debug.Print a
End Sub
就是 <span style="color: rgb(227, 108, 9);"><strong>空格+_</strong></span>
运行结果:
abc123
对于API也可以拆分成:
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
(ByVal hwnd&, ByVal lpOperation$, ByVal lpFile$, ByVal lpParameters$, ByVal _
lpDirectory$, ByVal nShowCmd&) As Long