新建一个工程,添加两个编辑框(TextBox),一个按钮(Command),双击按钮,看到如下代码:Private Sub Command1_Click()End Sub在这现行代码中粘贴下面代码:x = 0If (Val(Text1.Text) Mod 400) = 0 Then
x = 1ElseIf (Val(Text1.Text) Mod 1000) And (Val(Text1.Text) Mod 4 = 0) Then
x = 1End IfIf Val(Text1.Text) = 0 Then
x = 2End If
Select Case x
Case 0
...