Why does this compile?
If Months > 1 Then
Label.Text = Months + " Months"
Else : Months = 1
Label.Text = Months + " Month"
End If
Using Visual Studio 2010.
:
is a line separator. It's equivalent to a newline:
If Months > 1 Then
Label.Text = Months + " Months"
Else
Months = 1
Label.Text = Months + " Month"
End If
And here's the best documentation I could find. Sorry.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With