table表查询的问题
operator是paradox数据库的操作员表,我想在登录的时候让所有用户名都显示在combobox里面。现在操作员表里面有5条记录,也就是有五个用户。
---------------------------------------
在form里面的activate事件里面:
operator.Open;
operator.SetKey;
while not operator.GotoKey do //加上not下面的才能执行
begin
combobox1.Items.Add(operator.fieldbyname('username').asstring);
next;
end;
operator.Close;
-----------------------------------
调试执行的时候打开登录框很慢,好像是死机一样的。记录也不多啊,为什么会这样呢?