VB2010(9)_IF语句

Public Class Form1

    Private Sub btnIf_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnIf.Click
        Dim intNumber As Integer = 27
        If intNumber = 1000 Then
            MessageBox.Show("'intNumber' is,indeed,1000!", "Simple If")
        ElseIf intNumber = 27 Then
            MessageBox.Show("'intNumber' is 27!", "Simple If")
        Else
            MessageBox.Show("'intNumber' is not indeed 1000!", "Simple If")
        End If
    End Sub
End Class
 

相关文章:

  • 2021-06-16
  • 2021-05-14
  • 2021-04-14
  • 2022-01-31
  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-17
  • 2021-09-17
  • 2022-12-23
  • 2021-05-03
  • 2021-08-23
  • 2022-02-28
相关资源
相似解决方案