Foxtable(狐表)用户栏目专家坐堂 → [求助]对符合条件行赋值


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

主题:[求助]对符合条件行赋值

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


加好友 发短信
等级:童狐 帖子:254 积分:1963 威望:0 精华:0 注册:2013/2/6 19:09:00
[求助]对符合条件行赋值  发帖心情 Post By:2014/2/12 16:17:00 [只看该作者]

Dim max As Integer = Tables("打印fa piao_Table1").Compute("Max(FZ)","DY =  False ")
If max > 0 Then
    Tables("打印fa piao_Table1").Filter = "[FZ] = " & max  & " And [DY] = False"
End If
Dim drs As List(Of DataRow)
drs = Tables("打印fa piao_Table1").Select("[FZ] = " & max  & " And [DY] = False")
For Each dr As DataRow In drs
    dr("DY") = True
Next


Tables("打印fa piao_Table1")必须是DataTables??
[此贴子已经被作者于2014-2-12 16:27:30编辑过]

 回到顶部