如何解决“无法在已关闭的数据集上执行此操作"的问题?使用 Borland 数据库引擎和 Delphi 应用程序? [英] How do I solve the "Cannot perform this operation on a closed dataset" with Borland Database Engine and a Delphi application?

查看:74
本文介绍了如何解决“无法在已关闭的数据集上执行此操作"的问题?使用 Borland 数据库引擎和 Delphi 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该应用程序运行良好,直到我在 OpenOffice.org Calc 中编辑了用户数据库 (*.dbf).现在它给了我关于关闭数据集的上述错误.

The application was working perfectly, until I edited the user database (*.dbf) in OpenOffice.org Calc. Now it gives me the above error about a closed dataset.

推荐答案

根据您自己的评论,您无法打开数据库文件,因为它已损坏.因此,您的错误并不意味着您忘记打开它,而是您的应用无法打开损坏的 .dbf 文件.

As per your own comment, you were unable to open the database file because it was corrupt. Thus, the error in your case meant not that you forgot to open it, but that your app cannot open the corrupt .dbf file.

您可能会收到此错误的其他不那么明显的原因,比您未能将表 Active 属性设置为 true 的明显原因,包括系统或 BDE 配置错误(ODBC 或 ADO,或其他 BDE 运行时文件丢失或未配置)打开文件所需的)

Other not-so-obvious reasons why you might get this error, than the obvious thing that you failed to set the table Active property to true, include system or BDE configuration errors (ODBC or ADO, or other BDE runtime files missing or not configured) that are required to open the file

这篇关于如何解决“无法在已关闭的数据集上执行此操作"的问题?使用 Borland 数据库引擎和 Delphi 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆