vb 为什么运行总是提示“编译错误:endif没有if块”

给下源代码PrivateSubCommand1_Click()DimaAsIntegerDimbAsIntegerDimcAsIntegerDimdAsIntegerDi... 给下源代码
Private Sub Command1_Click()
Dim a As Integer
Dim b As Integer
Dim c As Integer
Dim d As Integer
Dim e As Integer
Dim f As Integer
If Command1.Caption = "¿aê¼óÎÏ·" Then
Command1.Caption = "í£Ö1óÎÏ·"
If Text1.Text < 1 Or Text1.Text > 10 Or Text2.Text < 5 Or Text2.Text > 100 Then
x = MsgBox("×îD¡ÖμμÄè¡Öμ·¶Î§êÇ1-10" & Chr(13) & "×î′óÖμμÄè¡Öμ·¶Î§êÇ5-100", 48, "×¢òa")
Else
Label10.Caption = ""
Label12.Caption = ""
Label13.Caption = ""
Label14.Caption = ""
Label11.Caption = ""
Label15.Caption = ""
Label16.Caption = ""
Command1.Caption = "í£Ö1óÎÏ·"
Text1.Text = a
Text2.Text = b
Randomize
c = Int((b * Rnd) + 1)
d = Int((b * Rnd) + 1)
e = Int((b * Rnd) + 1)
f = Int((b * Rnd) + 1)
Do Until c >= a
Randomize
c = Int((b * Rnd) + 1)
Loop
Do Until d >= a
Randomize
d = Int((b * Rnd) + 1)
Loop
Do Until e >= a
Randomize
e = Int((b * Rnd) + 1)
Loop
Do Until f >= a
Randomize
f = Int((b * Rnd) + 1)
Label2.Caption = c
Label5.Caption = c
Label3.Caption = c
Label4.Caption = c
End If
Else
Command1.Caption = "¿aê¼óÎÏ·"
Label2.Caption = "24"
Label5.Caption = "μã"
Label3.Caption = "óÎ"
Label4.Caption = "Ï·"
Label10.Caption = "24"
Label12.Caption = "μã"
Label13.Caption = "óÎ"
Label14.Caption = "Ï·"
Label11.Caption = "£«"
Label15.Caption = "£«"
Label16.Caption = "£«"
End If
End Sub
中文都变乱码了,但是还是可以看得
展开
 我来答
匿名用户
2010-05-22
展开全部
仔细看
Do Until f >= a
... ...
... ...
后边少东西
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式