求VB程序设计代码!拜托了!

2020-10-29 教育 72阅读
事件是用什么?
Private Sub Command5_Click()
Dim b(10) As Integer, i
Randomize
For i = 1 To 10
b(i) = Int(Rnd * (99 - 10 + 1) + 10)
Next i
Call bnim(b())
End Sub
Private Sub bnim(ByRef a() As Integer)
Dim i, j As Integer
j = a(1)
For i = 1 To 10
If j > a(i) Then
j = a(i)
End If
Next i
Print j
End Sub
我用的控件是command,事件是click你自己看一下吧
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com