7
これはなぜコンパイルされますか? Visual Studioの2010「ELSE:」はなぜvb.netでコンパイルされますか?
これはなぜコンパイルされますか? Visual Studioの2010「ELSE:」はなぜvb.netでコンパイルされますか?
:
を使用
If Months > 1 Then
Label.Text = Months + " Months"
Else : Months = 1
Label.Text = Months + " Month"
End If
行区切りです。改行と同等です。
If Months > 1 Then
Label.Text = Months + " Months"
Else
Months = 1
Label.Text = Months + " Month"
End If