首页 > 电脑/网络 >程序设计 >VB
2017-11-16 00:00:00 2017-11-17 23:59:59 http://h.chanjet.com/activity/hkj/xlaw/xlaw.html http://yyk.iask.sina.com.cn/pic/fimg/3991231702_800.jpg 2018-03-26 00:00:00 2018-04-25 23:59:59

抽奖的小程序的问题

编了个抽奖的小程序,可是有问题。不知道问题出在哪?麻烦高手看下。 Dim i As Integer Dim j As Integer Dim s As String Dim a() Private Sub Command1_Click() Do s = InputBox("请输入手机号") ReDim Preserve a(i) a(i) = s i = i + 1 Loop While s <> "" End Sub Private Sub Command2_Click() Timer1.Enabled = Not Timer1.Enabled If Timer1.Enabled = False Then MsgBox "恭喜" & Text1.Text & "用户中奖" End If End Sub Private Sub Timer1_Timer() Randomize i = Int(i - 3 - 0 + 1) * Rnd - 0 a(j) = i Text1.Text = a(j) End Sub [展开]

终*** 2018-04-02 05:30:30 举报

好评回答

50分钟前 广告
查看详情

类似问题换一批

相关知识 换一批

热度TOP 查看更多

大家都关注换一批

提问

热点搜索更多

举报

举报原因(必选):

取消 确定举报
3a7f7956b2984ca88f5d5c19c0fe4715