Foxtable(狐表)用户栏目专家坐堂 → 狐表经常响应慢,卡死


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

主题:狐表经常响应慢,卡死

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


加好友 发短信
等级:婴狐 帖子:39 积分:511 威望:0 精华:0 注册:2018/3/27 17:59:00
狐表经常响应慢,卡死  发帖心情 Post By:2018/7/2 8:50:00 [显示全部帖子]

老师:
     你好!我在用狐表学习过程经常遇到狐表响应很慢,甚至卡死,要强行终止程序才行。请问种情况该如何处理,恳请老师指导。

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


加好友 发短信
等级:婴狐 帖子:39 积分:511 威望:0 精华:0 注册:2018/3/27 17:59:00
  发帖心情 Post By:2018/7/2 9:52:00 [显示全部帖子]

老师: 你好! 我是有写drawcell 事件,麻烦老师看下是不是代码有问题: If e.Col.Name = "车头行驶证_年审有效期" Then If e.Row.IsNull("车头行驶证_年审有效期") = False Then If e.Row("车头行驶证_年审有效期") < = Date.Today Then e.style = "逾期" Else If e.Row("车头行驶证_年审有效期") < = Date.Today.AddDays(30) Then e.style = "即将到期" End If End If End If End If If e.Col.Name = "车头道路运输证_年审有效期" Then If e.Row.IsNull("车头道路运输证_年审有效期") = False Then If e.Row("车头道路运输证_年审有效期") < = Date.Today Then e.style = "逾期" Else If e.Row("车头道路运输证_年审有效期") < = Date.Today.AddDays(30) Then e.style = "即将到期" End If End If End If End If If e.Col.Name = "挂车行驶证_年审有效期" Then If e.Row.IsNull("挂车行驶证_年审有效期") = False Then If e.Row("挂车行驶证_年审有效期") < = Date.Today Then e.style = "逾期" Else If e.Row("挂车行驶证_年审有效期") < = Date.Today.AddDays(30) Then e.style = "即将到期" End If End If End If End If If e.Col.Name = "挂车道路运输证_年审有效期" Then If e.Row.IsNull("挂车道路运输证_年审有效期") = False Then If e.Row("挂车道路运输证_年审有效期") < = Date.Today Then e.style = "逾期" Else If e.Row("挂车道路运输证_年审有效期") < = Date.Today.AddDays(30) Then e.style = "即将到期" End If End If End If End If If e.Col.Name = "保险_保险有效期止" Then If e.Row.IsNull("保险_保险有效期止") = False Then If e.Row("保险_保险有效期止") < = Date.Today Then e.style = "逾期" Else If e.Row("保险_保险有效期止") < = Date.Today.AddDays(30) Then e.style = "即将到期" End If End If End If End If

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


加好友 发短信
等级:婴狐 帖子:39 积分:511 威望:0 精华:0 注册:2018/3/27 17:59:00
  发帖心情 Post By:2018/7/2 10:10:00 [显示全部帖子]

老师: 你好! 我是有写drawcell 事件,麻烦老师看下是不是代码有问题: If e.Col.Name = "车头行驶证_年审有效期" Then If e.Row.IsNull("车头行驶证_年审有效期") = False Then If e.Row("车头行驶证_年审有效期") < = Date.Today Then e.style = "逾期" Else If e.Row("车头行驶证_年审有效期") < = Date.Today.AddDays(30) Then e.style = "即将到期" End If End If End If End If If e.Col.Name = "车头道路运输证_年审有效期" Then If e.Row.IsNull("车头道路运输证_年审有效期") = False Then If e.Row("车头道路运输证_年审有效期") < = Date.Today Then e.style = "逾期" Else If e.Row("车头道路运输证_年审有效期") < = Date.Today.AddDays(30) Then e.style = "即将到期" End If End If End If End If If e.Col.Name = "挂车行驶证_年审有效期" Then If e.Row.IsNull("挂车行驶证_年审有效期") = False Then If e.Row("挂车行驶证_年审有效期") < = Date.Today Then e.style = "逾期" Else If e.Row("挂车行驶证_年审有效期") < = Date.Today.AddDays(30) Then e.style = "即将到期" End If End If End If End If If e.Col.Name = "挂车道路运输证_年审有效期" Then If e.Row.IsNull("挂车道路运输证_年审有效期") = False Then If e.Row("挂车道路运输证_年审有效期") < = Date.Today Then e.style = "逾期" Else If e.Row("挂车道路运输证_年审有效期") < = Date.Today.AddDays(30) Then e.style = "即将到期" End If End If End If End If If e.Col.Name = "保险_保险有效期止" Then If e.Row.IsNull("保险_保险有效期止") = False Then If e.Row("保险_保险有效期止") < = Date.Today Then e.style = "逾期" Else If e.Row("保险_保险有效期止") < = Date.Today.AddDays(30) Then e.style = "即将到期" End If End If End If End If

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


加好友 发短信
等级:婴狐 帖子:39 积分:511 威望:0 精华:0 注册:2018/3/27 17:59:00
  发帖心情 Post By:2018/7/2 12:49:00 [显示全部帖子]

老师:
    你好! 我删了几张附表,用SELECT CASE 简化了下drawcell 事件的代码现在好像可以。如果再出现我就直接发上来。

谢谢老师!

 回到顶部