如何表示偶数?
Dim i as integer, j As Integer
Private Sub Form_Load()
i = 1
Timer1.Interval = 500
End Sub
Private Sub Timer1_Timer()
i = i + 1
If i = 2 * j Then
Frame2.Visible = False
Frame1.Visible = True
Else
Frame1.Visible = False
Frame2.Visible = True
End If
End Sub
我的目的是让frame1,2交替显示,也就是i为偶数时frame1显示,i为奇数时frame2显示,是不是我表示偶数的方法不对?程序运行后没有预期的目的