Foxtable(狐表)用户栏目专家坐堂 → 怎么取子表的值


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

主题:怎么取子表的值

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


加好友 发短信
等级:五尾狐 帖子:1062 积分:9781 威望:0 精华:0 注册:2012/3/13 5:23:00
怎么取子表的值  发帖心情 Post By:2016/8/20 0:48:00 [只看该作者]

  Dim d As Row = Tables("weixindanhao.weixin.weixinminxi").Current

  这个黄色的位置本来想要娶 子表的值  请问改怎么写字,非常感谢


  Dim K As String = e.DataRow("vipp")
    Select Case K
        Case "一般"
          e.DataRow("price")=d("price1")
        Case "vip"
         e.DataRow("price")=d("vip")
        Case "cvp"
         e.DataRow("price")=d("cvp")
    End Select

End If
[此贴子已经被作者于2016/8/20 0:50:36编辑过]

 回到顶部
帅哥哟,离线,有人找我吗?
2900819580
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:六尾狐 帖子:1330 积分:9668 威望:0 精华:0 注册:2015/6/30 8:46:00
  发帖心情 Post By:2016/8/20 8:12:00 [只看该作者]

Dim t As Table = Tables("weixindanhao.weixin.weixinminxi")
  Dim K As String = e.DataRow("vipp")
    Select Case K
        Case "一般"
          e.DataRow("price")=t.Current("price1")
        Case "vip"
         e.DataRow("price")=t.Current("vip")
        Case "cvp"
         e.DataRow("price")=t.Current("cvp")
    End Select

试一下

 回到顶部
帅哥哟,离线,有人找我吗?
Hyphen
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:狐神 帖子:5015 积分:25363 威望:0 精华:0 注册:2015/8/18 9:21:00
  发帖心情 Post By:2016/8/20 9:19:00 [只看该作者]

Dim d As Row = Tables("weixinminxi").Current
if d isnot nothing then
......
endif

 回到顶部