“为什么?”;否则:“;在vb.net中编译?

“为什么?”;否则:“;在vb.net中编译?,vb.net,operators,Vb.net,Operators,为什么要编译 If Months > 1 Then Label.Text = Months + " Months" Else : Months = 1 Label.Text = Months + " Month" End If 使用Visual Studio 2010。:是一个行分隔符。这相当于一个新行: If Months > 1 Then Label.Text = Months + " Months" Else Months = 1

为什么要编译

If Months > 1 Then

    Label.Text = Months + " Months"

Else : Months = 1

    Label.Text = Months + " Month"

End If

使用Visual Studio 2010。

是一个行分隔符。这相当于一个新行:

If Months > 1 Then

    Label.Text = Months + " Months"

Else

    Months = 1
    Label.Text = Months + " Month"

End If
对不起