VB6的程序中,如果一行太长,就用空格+下划线换行。
新建From1(窗体),新建Command1(按钮CommandButton),代码:
Private Sub Command1_Click() Dim str As String str = "Ma" & _ "Nong" & _ "Ku" & _ ".com" MsgBox str End Sub
试试效果就是显示:
MaNongKu.com