Do while not records.eofcombo1.additem records![Full Name]records.movenextloop
结果是每个循环中数据库都要进行一次数据结束测试。在大量的记录的情况下, 浪费的时间相当大。 而使用以下的代码, 可以提高近 1/3 的速度:
records.movelastintRecCount=records.RecordCountrecords.movefirst
for intCounter=1 to intRecCountcombo1.additem records![Full Name]records.movenextnext intCounter
(出处:开发者俱乐部)