vb猜数字游戏代码(其中一部分)错误,求修改
Dimmystr,str1AsStringFori=oTo9Lb1_info(i).Caption=""NextiText1.Text=""aa=""Fori=0To3R...
Dim mystr, str1 As String
For i = o To 9
Lb1_info(i).Caption = ""
Next i
Text1.Text = ""
aa = ""
For i = 0 To 3
Randomize
Number = Rnd * 9
For j = 0 To i - 1
If Num(j) = Number Then
i = i - 1
Exit For
Else
Num(i) = Number
End If
Next j
Next i
Text1.SetFocus
End Sub
显示的是“If Num(j) = Number Then”这里错误,求修改 展开
For i = o To 9
Lb1_info(i).Caption = ""
Next i
Text1.Text = ""
aa = ""
For i = 0 To 3
Randomize
Number = Rnd * 9
For j = 0 To i - 1
If Num(j) = Number Then
i = i - 1
Exit For
Else
Num(i) = Number
End If
Next j
Next i
Text1.SetFocus
End Sub
显示的是“If Num(j) = Number Then”这里错误,求修改 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询