Foxtable(狐表)用户栏目专家坐堂 → [求助]取值问题


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

主题:[求助]取值问题

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


加好友 发短信
等级:五尾狐 帖子:1128 积分:11029 威望:0 精华:2 注册:2008/9/1 10:45:00
[求助]取值问题  发帖心情 Post By:2012/3/1 15:12:00 [只看该作者]

请各位老师帮忙看看,用数值做条件的取值问题,这样为什么不行:

 

For Each dr As Row In Tables("数据").Rows
    Dim h As DataRow=DataTables("标准").Find("下限>=" & dr("金额") & "and 上限<" & dr("金额"))
    If h IsNot Nothing Then '如果找到的话
        dr("标准")=h("标准")
    End If
Next

 

这样能取到值:

For Each dr As Row In Tables("数据").Rows
    Dim h As DataRow=DataTables("标准").Find("下限>=" & dr("金额"))
    If h IsNot Nothing Then '如果找到的话
        dr("标准")=h("标准")
    End If
Next

难到end不能用吗?


 回到顶部