Foxtable(狐表)用户栏目专家坐堂 → 3月6日第二次更新后,代码不起作用了


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

主题:3月6日第二次更新后,代码不起作用了

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


加好友 发短信 一级勋章
等级:MVP荣誉狐 帖子:5154 积分:31434 威望:0 精华:8 注册:2008/9/8 12:27:00
3月6日第二次更新后,代码不起作用了  发帖心情 Post By:2009/3/6 20:27:00 [只看该作者]

下面代码有什么问题吗?刚换上3月6日第二次更新后,就不起作用了,之前还好好的呀?~

Dim bc As integer = Tables("表A").Current("编号")
Dim dr As DataRow = DataTables("表b").Find("[编号]  = '" & bc & "'")
if dr isnot nothing  then
If Tables("表A").Current("摘要") <> dr("摘要") andalso Tables("表A").Current("分号") = dr("分号") Then
      e.Style = "是否修改过"     (这是自定义样式)
   elseif Tables("表A").Current("品名") <> dr("品名") andalso Tables("表A").Current("分号") = dr("分号") Then
      e.Style = "是否修改过"
   elseif Tables("表A").Current("金额") <> dr("金额") andalso Tables("表A").Current("分号") = dr("分号") Then
      e.Style = "是否修改过"
End If
End If

 


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


加好友 发短信
等级:管理员 帖子:47448 积分:251054 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2009/3/6 21:11:00 [只看该作者]

这部分是没有修改过的,不应该无效,你先调试一下代码,看看问题在那里。
基本的调试技巧要掌握的,帮助中有讲述。
估计就是比较的部分没有成立,在命令窗口写一个类似的比较式测试也可以啊。

搞不定就传文件。


 回到顶部