Foxtable(狐表)用户栏目专家坐堂 → 动态加载行数


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

主题:动态加载行数

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


加好友 发短信
等级:小狐 帖子:355 积分:3931 威望:0 精华:0 注册:2014/7/29 23:42:00
动态加载行数  发帖心情 Post By:2018/6/3 9:40:00 [只看该作者]

在打开项目的时候,默认只加载外部表10行,然后用下面的代码点多少次,都是加载10行,但利用卸载表,卸掉以后,再用下面的代码,就能加载所有的行。

我该怎么改?开始加10行,点这个按钮,就能全部加载?

If DataTables.Contains("IncidentReports2005") = False Then
    DataTables.Load("IncidentRepor
    DataTables("IncidentReports2005").LoadTop = Nothing
    DataTables("IncidentReports2005").LoadOrder = "'Date of Incident' Desc"
    DataTables("IncidentReports2005").LoadFilter = ""    
    DataTables("IncidentReports2005").Load   
    
    MainTable = Tables("IncidentReports2005")
End If




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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/6/3 10:25:00 [只看该作者]

改成

 

If DataTables.Contains("IncidentReports2005") = False Then
    DataTables.Load("IncidentReports2005")
End If
DataTables("IncidentReports2005").LoadTop = Nothing
DataTables("IncidentReports2005").LoadOrder = "'Date of Incident' Desc"
DataTables("IncidentReports2005").LoadFilter = ""
DataTables("IncidentReports2005").Load

MainTable = Tables("IncidentReports2005")


 回到顶部