|
![]() |
名片设计 CorelDRAW Illustrator AuotoCAD Painter 其他软件 Photoshop Fireworks Flash |
|
通常我们使用以下的代码进行记录循环: Do while not records.eof combo1.additem records![Full Name] records.movenext loop 结果是每个循环中数据库都要进行一次数据结束测试。在大量的记录的情况下, 浪费的时间相称大。 而使用以下的代码, 可以提高近 1/3 的速度: records.movelast intRecCount=records.RecordCount records.movefirst for intCounter=1 to intRecCount combo1.additem records![Full Name] records.movenext next intCounter 返回类别: 教程 上一教程: 用ASP实现分页显示的具体讲解 下一教程: 用ASP编程控制在IIS建立WEB站点 您可以阅读与"不用EOF以加快记录循环"相关的教程: · ASP中用JOIN和ARRAY,可以加快字符连接速度 · 菜鸟十天学会ASP教程之第六天:查询记录 · 图片循环显现 · ASP + ORACLE 分页方式 (不用存储过程) · 关于Access所有记录中均未找到搜索要害字的错误 |
![]() ![]() |
快精灵印艺坊 版权所有 |
首页![]() ![]() ![]() ![]() ![]() ![]() ![]() |