procedure TContractForm.DBNavigator1Click(Sender: TObject;
Button: TNavigateBtn);
var
i:integer;
begin
case button of
...... nbDelete:
begin
for i:=0 to ChoicedHouseCode.Items.Count-1 do
begin
with DataContrls.HTable do
begin
Locate('房屋号',ChoicedHouseCode.Items[i],[]);
Edit;
FieldByName('状态').AsString:='';
FieldByName('合同号').AsString:='';
Post;
end;
end;
......
end;
end;
end;当执行这项操作时,它会跳出一个“Debugger Exception Notification”,具体内容是:“Project HouseManager.exe raised exception class EDatabaseError with message'HTable:Cannot perform this operation on a closed dataset'.Process stopped.Use Step or Run to continue.”是不是说数据集没有打开,应该怎么打开?
还是有其他的错误?
谢谢
Button: TNavigateBtn);
var
i:integer;
begin
case button of
...... nbDelete:
begin
for i:=0 to ChoicedHouseCode.Items.Count-1 do
begin
with DataContrls.HTable do
begin
Locate('房屋号',ChoicedHouseCode.Items[i],[]);
Edit;
FieldByName('状态').AsString:='';
FieldByName('合同号').AsString:='';
Post;
end;
end;
......
end;
end;
end;当执行这项操作时,它会跳出一个“Debugger Exception Notification”,具体内容是:“Project HouseManager.exe raised exception class EDatabaseError with message'HTable:Cannot perform this operation on a closed dataset'.Process stopped.Use Step or Run to continue.”是不是说数据集没有打开,应该怎么打开?
还是有其他的错误?
谢谢
解决方案 »
- 拜求:如何从usb读取数据啊????
- 关于查询中参数的设置问题
- delphi里面怎么备份数据库里的数据??
- 出售群发软件的源码,多线程,无需SMTP服务器,1000+封/分钟
- 组件开发问题,感谢大家参与
- 关于socket问题,在线请教高手(一定给分)
- 本人初学DELPHI:如何在TWEBBROWSER中使用自己的POPUPMENU,入即给分
- 那有ADO的升级版本ADOExpress Pack1??
- Delphi 5 是个大白痴
- InstallShield Professional - Standard Edition --- IPSE622.exe 序列号
- 服了,ADO连数据库,2000的 Professional,Ad Server下都行,在2000 Server下连不上:(
- 如何用程序测试ADSL路油器广域网端口IP(用DELPHI)
begin
//在这里加一句;
if not active then open;
Locate('房屋号',ChoicedHouseCode.Items[i],[]);
Edit;
FieldByName('状态').AsString:='';
FieldByName('合同号').AsString:='';
Post;
end;