问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

谁有VB题目(彩票选号小助手)的程序代码的

发布网友 发布时间:2022-04-26 23:31

我来回答

1个回答

热心网友 时间:2022-06-20 04:22

Option Explicit
Private Sub Command1_Click()
Dim i As Integer, j As Integer, d As Integer
Dim a As String

d = 1
For i = 0 To 34
Text1(i).Text = Mid$(GenNnm, d, 2)
d = d + 2
Next i
'1-7排序并去初重复
aa:
For i = 1 To 6
For j = 0 To i
If Val(Text1(j).Text) > Val(Text1(i).Text) Then
a = Text1(i).Text
Text1(i).Text = Text1(j).Text
Text1(j).Text = a
End If
Next j
Next i
For j = 0 To 6
If Val(Text1(j).Text) = Val(Text1(j + 1).Text) Then
d = 1
For i = 0 To 6
Text1(i).Text = Mid$(GenNnm, d, 2)
d = d + 2
Next i
GoTo aa
End If
Next j
'7-14排序并去处重复
bb:
For i = 8 To 13
For j = 7 To i
If Val(Text1(j).Text) < Val(Text1(i).Text) Then
a = Text1(i).Text
Text1(i).Text = Text1(j).Text
Text1(j).Text = a
End If
Next j
Next i
For j = 7 To 13
If Val(Text1(j).Text) = Val(Text1(j + 1).Text) Then
d = 15
For i = 7 To 13
Text1(i).Text = Mid$(GenNnm, d, 2)
d = d + 2
Next i
GoTo bb
End If
Next j
'14-21排序并去处重复
cc:
For i = 15 To 20
For j = 14 To i
If Val(Text1(j).Text) < Val(Text1(i).Text) Then
a = Text1(i).Text
Text1(i).Text = Text1(j).Text
Text1(j).Text = a
End If
Next j
Next i
For j = 14 To 20
If Val(Text1(j).Text) = Val(Text1(j + 1).Text) Then
d = 29
For i = 14 To 20
Text1(i).Text = Mid$(GenNnm, d, 2)
d = d + 2
Next i
GoTo cc
End If
Next j
'21-28排序
dd:
For i = 22 To 27
For j = 21 To i
If Val(Text1(j).Text) < Val(Text1(i).Text) Then
a = Text1(i).Text
Text1(i).Text = Text1(j).Text
Text1(j).Text = a
End If
Next j
Next i
For j = 21 To 27
If Val(Text1(j).Text) = Val(Text1(j + 1).Text) Then
d = 43
For i = 21 To 27
Text1(i).Text = Mid$(GenNnm, d, 2)
d = d + 2
Next i
GoTo dd
End If
Next j
'28-35排序并去处重复
ee:
For i = 29 To 34
For j = 28 To i
If Val(Text1(j).Text) < Val(Text1(i).Text) Then
a = Text1(i).Text
Text1(i).Text = Text1(j).Text
Text1(j).Text = a
End If
Next j
Next i
For j = 28 To 33
If Val(Text1(j).Text) = Val(Text1(j + 1).Text) Then
d = 55
For i = 28 To 34
Text1(i).Text = Mid$(GenNnm, d, 2)
d = d + 2
Next i
GoTo ee
End If
Next j
End Sub
Function GenNnm() As String
Dim str1 As String
Dim i As Integer, Num As Integer
Dim usechar As String
usechar = "0102030405060708091011121314151617181920212223242526272829303132333435"
str1 = ""
Randomize
For i = 1 To 36
Num = Len(usechar) * Rnd + 1
If Num Mod 2 = 1 Then
str1 = str1 + Mid(usechar, Num, 2)
Else
str1 = str1 + Mid(usechar, Num - 1, 2)
End If
Next i
GenNnm = str1
End Function
Private Sub Command2_Click()
Dim i As Integer
For i = 0 To 34
Text1(i).Text = ""
Next i
End Sub
Private Sub Command3_Click()
Unload Me
frmLoad.Show
End Sub
Private Sub Form_Load()
Option5.Value = True
End Sub
Private Sub Option1_Click()
Dim i As Integer
For i = 7 To 34
Text1(i).Visible = False
Next i
For i = 0 To 34
Text1(i).Text = ""
Next i
End Sub
Private Sub Option2_Click()
Dim i As Integer
For i = 14 To 34
Text1(i).Visible = False
Next i
For i = 0 To 13
Text1(i).Visible = True
Next i
For i = 0 To 34
Text1(i).Text = ""
Next i
End Sub
Private Sub Option3_Click()
Dim i As Integer
For i = 21 To 34
Text1(i).Visible = False
Next i
For i = 0 To 20
Text1(i).Visible = True
Next i
For i = 0 To 34
Text1(i).Text = ""
Next i
End Sub
Private Sub Option4_Click()
Dim i As Integer
For i = 28 To 34
Text1(i).Visible = False
Next i
For i = 0 To 27
Text1(i).Visible = True
Next i
For i = 0 To 34
Text1(i).Text = ""
Next i
End Sub
Private Sub Option5_Click()
Dim i As Integer
For i = 0 To 34
Text1(i).Visible = True
Next i
For i = 0 To 34
Text1(i).Text = ""
Next i
End Sub
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
日语鼻浊音怎么个读法,我是自学的,背完50音图之后看这个有点乱。_百度... 日语中的鼻浊音一定要发吗 日语的鼻浊音到底是什么鬼 日语 哪两行有鼻浊音? 日语里面有没有鼻浊音啊,就是"か"那一行,是否当不是句首时就读鼻... 魔兽世界奶僧和踏风武僧pve和pvp分别用什么雕文和天赋,求大神! pvp奶僧拿550双手好还是单手好 魔兽世界5.0熊猫武增要什用什么装备武器 问一下,长城4S店的销售顾问待遇怎样 慎重词语解释 满城尽带黄金甲DVD版哪里有下载啊!! 求大神帮我解释一段vb代码,感激不尽,是彩票选号小助手的 满城尽带黄金甲电影 下面是一个“彩票选号小助手”的Visual Basic(VB)的程序代码。下面是设计界面,求高人逐字逐句解释代码 福彩双色球选号助手信誉如何呢? 哪里能用BT或迅雷下载&lt;满城尽带黄金甲&gt;的清晰版? 有没有喜羊羊与灰太狼的作文300字 烤小羊棒腿的腌制方法 求满城尽带黄金甲高清百度云资源 吃必胜客 满城尽带黄金甲,求高清种子。1080P或720P 有没有会做韩国烤肉的(烤五花肉)!! 求满城尽带黄金甲高清 香烤全鸡-飞利浦万用锅的美味做法? 满城尽带黄金甲高清完整版下载地址 龙猪是道什么菜 跪求好心人分享满城尽带黄金甲2006年上映的由 周润发主演的免费高清百度云资源 旋转式烤鸡炉烤出来来的鸡叫什么 烤鸡? 哪位好心人有满城尽带黄金甲(2006)张艺谋导演的免费高清百度云资源 鸡肉烤多久熟 满城尽带黄金甲的片长是多少分钟 满城尽带黄金甲? 跪求用VB程序设计《彩票选号小助手》小程序,,跪求帮忙,,,,感激不尽 腾讯大王卡怎么选号? 联通腾讯大王卡官网 网上订的大王卡如何退订?重新选号? 腾讯王卡怎么自己选号? 支付宝号码之家选好可靠吗? 联通的腾讯王卡如何激活使用? 为什么现在苹果找回id密码一定要手机号码找回ID后,App与数据要怎么选择传输_百度问一问 我爷爷3年前已经去世了,今天做梦梦到爷爷在工地里干活不小心摔下来死了。这是什么原因,心里好难受 梦见去世的爷爷从屋顶掉下摔断了腿,什么意思? 梦中梦,梦中梦到爷爷从楼梯上摔下来去世了,醒来发现一条白色被子盖在自己身上,知道自己是在梦中做梦 梦见爷爷骑着自行车摔倒了是什么寓意? 梦见去世的爷爷在房顶上跳下来 摔断一条腿 并且流了鲜血 请指教 梦见去世的爷爷出不去,要我抬着,没抬稳还摔了? 梦见亲人被摔成活生生两段? 上睑下垂的手术方式有哪些? 上睑下垂是什么手术呢? 上睑下垂手术后应该注意什么