Foxtable(狐表)用户栏目专家坐堂 → case语句问题


  共有2423人关注过本帖平板打印复制链接

主题:case语句问题

帅哥哟,离线,有人找我吗?
luodang2050
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:二尾狐 帖子:585 积分:5674 威望:0 精华:0 注册:2014/5/21 10:30:00
case语句问题  发帖心情 Post By:2014/10/17 17:06:00 [只看该作者]

以下代码通过函数取得s多字符串,其格式为: “A”,“B”

当判断值为A时,为啥不起作用?

'table权限统一设置
Dim s As String =Functions.Execute("获取所有已设置表名")
MessageBox.Show(s)
For Each t As Table In Tables
    Dim tname  As String = t.Name
    Select Case tname
        Case s
            t.Visible = False
            If user.Type = UserTypeEnum.User
                t.AllowEdit = False
            Else
                t.AllowEdit = True
            End If
        Case Else
            If user.Type = UserTypeEnum.User
                t.Visible = False
                t.AllowEdit = False
            Else
                t.Visible = True
                t.AllowEdit = True
            End If
    End Select
Next


 回到顶部