Foxtable(狐表)用户栏目专家坐堂 → [求助]求大家给写个代码!


  共有3729人关注过本帖树形打印复制链接

主题:[求助]求大家给写个代码!

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


加好友 发短信
等级:管理员 帖子:47448 积分:251060 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2014/3/19 12:38:00 [显示全部帖子]

1、DataRowAdding事件:

 

e.datarow("第一列") = 1

 

2、PrePareEdit事件:

 

if e.Col.Name  = “第二列” OrElse e.Col.Name = "第三列" Then

    if e.Row("第一列") = 2 then

       e.Cancel  = True

    end if

end if

 

3、Buton1的Click事件:

 

    Dim Val as integer = Tables("表名").Current("第一列")

    Select case Val

        case 1,2,3

             Messagebox.show("没用")

             Retuen

    End Select

    原来的代码

 

 


 回到顶部