读心术代码运行时出现“子程序或函数未定义错误”,我是小白一枚,请高手!急用,谢谢!
Dima(13)AsIntegerDimintiAsIntegerPrivateSubForm_Load()lbl1.Top=4800lbl1.Left=7800a(0)...
Dim a(13) As Integer
Dim inti As Integer
Private Sub Form_Load()
lbl1.Top = 4800
lbl1.Left = 7800
a(0) = 7
a(1) = 8
a(2) = 11
a(3) = 12
a(4) = 14
a(5) = 15
a(6) = 17
a(7) = 18
a(8) = 19
a(9) = 20
a(10) = 26
a(11) = 27
a(12) = 36
a(13) = 37
For i = 1 To 99
Load lbl(i)
lbl(i).Top = lbl(0).Top + lbl(0).Height + 600 * (i \ 12)
lbl(i).Left = lbl(0).Left + lbl(0).Width + 600 * (i Mod 12)
lbl(i).Visible = True
Next
lbl(0).Top = lbl(0).Top + lbl(0).Height
lbl(0).Left = lbl(0).Left + lbl(0).Width
nsu
End Sub
Public Sub nsu()
Randomize
inti = Int((1500232 * Rnd) Mod 14)
For i = 0 To 99
intj = Int((1500232 * Rnd) Mod 14)
Do While (intj = inti)
intj = Int((1500232 * Rnd) Mod 14)
Loop
lbl(i).Caption = (99 - i) & Chr(a(intj))
If (99 - i) Mod 9 = 0 And (99 - i) < 82 Then lbl(i).Caption = (99 - i) & Chr(a(inti))
Next
End Sub
Private Sub Label2_Click()
Label2.Visible = False
lbl1.Caption = "尐"
For i = 0 To 99
lbl(i).Visible = True
Next
nsu
End Sub
Private Sub lbl1_Click()
If lbl1.Caption = "尐" Then
lbl1.Caption = Chr(a(inti))
Label2.Visible = True
Label2.Caption = Chr(a(inti))
For i = 0 To 99
lbl(i).Visible = False
Next
Else
Label2.Visible = False
lbl1.Caption = "尐"
For i = 0 To 99
lbl(i).Visible = True
Next
nsu
End If
End Sub 展开
Dim inti As Integer
Private Sub Form_Load()
lbl1.Top = 4800
lbl1.Left = 7800
a(0) = 7
a(1) = 8
a(2) = 11
a(3) = 12
a(4) = 14
a(5) = 15
a(6) = 17
a(7) = 18
a(8) = 19
a(9) = 20
a(10) = 26
a(11) = 27
a(12) = 36
a(13) = 37
For i = 1 To 99
Load lbl(i)
lbl(i).Top = lbl(0).Top + lbl(0).Height + 600 * (i \ 12)
lbl(i).Left = lbl(0).Left + lbl(0).Width + 600 * (i Mod 12)
lbl(i).Visible = True
Next
lbl(0).Top = lbl(0).Top + lbl(0).Height
lbl(0).Left = lbl(0).Left + lbl(0).Width
nsu
End Sub
Public Sub nsu()
Randomize
inti = Int((1500232 * Rnd) Mod 14)
For i = 0 To 99
intj = Int((1500232 * Rnd) Mod 14)
Do While (intj = inti)
intj = Int((1500232 * Rnd) Mod 14)
Loop
lbl(i).Caption = (99 - i) & Chr(a(intj))
If (99 - i) Mod 9 = 0 And (99 - i) < 82 Then lbl(i).Caption = (99 - i) & Chr(a(inti))
Next
End Sub
Private Sub Label2_Click()
Label2.Visible = False
lbl1.Caption = "尐"
For i = 0 To 99
lbl(i).Visible = True
Next
nsu
End Sub
Private Sub lbl1_Click()
If lbl1.Caption = "尐" Then
lbl1.Caption = Chr(a(inti))
Label2.Visible = True
Label2.Caption = Chr(a(inti))
For i = 0 To 99
lbl(i).Visible = False
Next
Else
Label2.Visible = False
lbl1.Caption = "尐"
For i = 0 To 99
lbl(i).Visible = True
Next
nsu
End If
End Sub 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询