标题:请教下Public bbb As Boolean问题
取消只看楼主
Bendis
Rank: 1
来 自:福建厦门
等 级:新手上路
帖 子:47
专家分:0
注 册:2010-4-2
结帖率:93.75%
已结贴  问题点数:10 回复次数:1 
请教下Public bbb As Boolean问题
Private Sub Combo4_Change()
    If Trim(Combo4.Text) = "" Then
        List1.Clear
        List1.Visible = False
        Exit Sub
    End If
    If bbb = True Then
        List1.Clear
        List1.Visible = False
        Dim mrc As ADODB.Recordset
        txtsql = "select   DISTINCT 姓名 from xj where 学号 ='" & Trim(Combo4.Text) & "'"
        Set mrc = ExecuteSQL(txtsql)
        If mrc.EOF = True Then
            sss = MsgBox("没有此学号!", vbExclamation + vbOKOnly, "警告")
            Text2.Text = ""
            Exit Sub
        End If
        Text2.Text = mrc.Fields(0)
        Set mrc = Nothing

        Exit Sub
    End If
    Dim rst As ADODB.Recordset
    Dim str As String
    str = "select 学号 from xj where 学号 like'" & Trim(Combo4.Text) & "%' and 班级='" & Trim(Combo2.Text) & "' order by 学号"
    Set rst = ExecuteSQL(str)
    If rst.EOF = True Then
        List1.Clear
        List1.Visible = False
        Set rst = Nothing
        Exit Sub
    End If
    List1.Clear
    Do Until rst.EOF
        List1.AddItem rst.Fields(0)
        rst.MoveNext
    Loop
    Set rst = Nothing
    List1.Visible = True
End Sub
这里的bbb是什么意思,bbb在通用声明定义Public bbb As Boolean,这里bbb的作用我不太明白,它代表的是什么意思啊
搜索更多相关主题的帖子: bbb Public Boolean 
2010-05-11 12:24
Bendis
Rank: 1
来 自:福建厦门
等 级:新手上路
帖 子:47
专家分:0
注 册:2010-4-2
得分:0 
哦,好的 我看看下,待会有问题再问你,谢谢你最近都帮我啊
2010-05-12 09:14



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-306183-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.270865 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved