论坛: 编程破解 标题: vb菜问题 复制本贴地址    
作者: xww8258 [xww8258]    论坛用户   登录
下面这段代码远行时总是出错,"未找到方法或数据成员"
大侠们帮我分析下噻.谢谢了哇,


Private Sub Command1_Click()
    Image1.visble = False '隐藏图像1
    Label1.Caption = Int(Rnd * 10)  '得到随机数
    Label2.Caption = Int(Rnd * 10)
    Label3.Caption = Int(Rnd * 10)
    '当某个标题为7时,显示一堆硬币并响铃
    If (Label1.Caption = 7) Or (Label2.Caption = 7) _
      Or (Label3.Caption = 7) Then
        Image1.Visible = True
        Beep
    End If
   
End Sub

地主 发表时间: 07-07-11 00:21

回复: jhkdiy [jhkdiy]   版主   登录
代码:

Private Sub Command1_Click()
    Image1.Visible = False '隐藏图像1
    Label1.Caption = Int(Rnd * 10)  '得到随机数
    Label2.Caption = Int(Rnd * 10)
    Label3.Caption = Int(Rnd * 10)
    '当某个标题为7时,显示一堆硬币并响铃
    If (Label1.Caption = 7) Or (Label2.Caption = 7) _
      Or (Label3.Caption = 7) Then
        Image1.Visible = True
        Beep
    End If
End Sub



Image1.Visible = False '隐藏图像1
Image1.visble  = False '隐藏图像1

笔误,单词错了。

B1层 发表时间: 07-07-11 17:35

回复: xww8258 [xww8258]   论坛用户   登录
谢谢版主.20cn热心的人还是不少吗.哈哈...

B2层 发表时间: 07-07-11 19:42

论坛: 编程破解

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号