G
gkwife
Unregistered / Unconfirmed
GUEST, unregistred user!
有两个按纽,按下BUTTON1时,
执行如下:
query1.Close;
query1.SQL.Clear;
query1.SQL.Add('select * from "student.db" where 性别="男");
query1.prepare;
query1.execsql;
query1.Open;
按下BUTTON2时,
执行如下:
query1.Close;
query1.SQL.Clear;
query1.SQL.Add('select * from "student.db" where 性别="女");
query1.prepare;
query1.execsql;
query1.Open;
然后就分别在DBGRID控件中显示选择出的记录.
问题就是 当我反复来回点这两个按纽十几遍后,系统就提示出错,
出错信息为:"to many open files...you may need to increase MAXFILEHANDLE
limit in IDAPI configuration"
执行如下:
query1.Close;
query1.SQL.Clear;
query1.SQL.Add('select * from "student.db" where 性别="男");
query1.prepare;
query1.execsql;
query1.Open;
按下BUTTON2时,
执行如下:
query1.Close;
query1.SQL.Clear;
query1.SQL.Add('select * from "student.db" where 性别="女");
query1.prepare;
query1.execsql;
query1.Open;
然后就分别在DBGRID控件中显示选择出的记录.
问题就是 当我反复来回点这两个按纽十几遍后,系统就提示出错,
出错信息为:"to many open files...you may need to increase MAXFILEHANDLE
limit in IDAPI configuration"