上课用的,哪位大侠愿意帮忙,求教备注下汉语意思啊
打字母游戏中的代码(忘了哪里下载的了)开始:Command2 暂停:Command1 重玩:Command3
lable是字母
Private Sub Command2_Click()
Timer1.Enabled = True
End Sub
Private Sub Command3_Click()
Picture1.Item(0).Top = -1000
Picture1.Item(2).Top = -800
Picture1.Item(3).Top = -700
Picture1.Item(4).Top = -800
Picture1.Item(1).Top = -600
Timer1.Enabled = False
Dim a(5) As Integer
Randomize
a(1) = Int(65 + 25 * Rnd)
Label1.Item(0).Caption = Chr(a(1))
k = 1
Do While k < 5
m = Int(Rnd * 25 + 65)
f = 0
For j = 1 To k
If m = a(j) Then
f = 1
Exit For
End If
Next j
If f = 0 Then
k = k + 1
a(k) = m
Label1.Item(k - 1).Caption = Chr(m)
End If
Loop
p = 0
End Sub