我使用的是BDE数据库引擎,Table组件,其中Name属性是:tab_table,DataName属性是:tab.db,Active属性:true.我建这个表是用于暂存数据的,当添加完一些设备信息后,要打印出每个设备标签,我把标签上需要的一些信息存入此表,打印完后清空此表,以利于下次使用此表。我使用以下语句清空此表,但是运行出错:
if tab_table.Active then
begin
tab_table.close;
tab_table.EmptyTable;
tab_table.open;
end;
错误提示是:
Project EMS.exe are raised excption class EDBEngineError with message'
Table:D:\EMS\TAB.db
User:wanli',Process stopped.Use step or Run to continue
请各位高手相助,错在哪里?有没有其他的解决方案?
if tab_table.Active then
begin
tab_table.close;
tab_table.EmptyTable;
tab_table.open;
end;
错误提示是:
Project EMS.exe are raised excption class EDBEngineError with message'
Table:D:\EMS\TAB.db
User:wanli',Process stopped.Use step or Run to continue
请各位高手相助,错在哪里?有没有其他的解决方案?
解决方案 »
- oracle建立索引
- 高手帮忙看看哪里的错?
- 如何捕捉特定的窗口,让其关闭。
- 数据采样,顶级问题,能回答的可能不多。
- TEE CHARTDE 5.0 是什么控件啊?有了解的进
- 如何在窗体上实现框选功能?例如用鼠标在窗体上一次框选两个按钮。
- 为什么预览时会显示两次?
- 压缩传输组件 tcpserver tcpClient activeForm无法连接
- image.pictrue.loadfromfile的问题
- wininet webbrowser 共享 session
- 如何强制让DELPHI区分大小写,象C一样,如果大小写不一致就编译错误
- 讨论:Delphi在Web的发展方向!(关于聊天记录的一点想法)
2。 if tab_table.Active then
begin
tab_table.close;
tab_table.TableType := ttParadox;//////
tab_table.EmptyTable;
tab_table.open;
end;
tab_table.EmptyTable;
tab_table.Edit;
tab_table.Post;
我把表打开表使用上述语句:
tab_table.Edit;
tab_table.EmptyTable;
tab_table.Edit;
tab_table.Post;
还是出错,不过出错原因变了:
出错信息是:
Project EMS.exe are raised excption class EDBEngineError with message
'Table canot be opened for exclusive use'
User:wanli',Process stopped.Use step or Run to continue
不知错在哪里?
tab_table.edit;
while not tab_table.eof do
tab_table.delete;
tab_table.post;
如果还出错,可能你的表有外键约束