Delphi - TStoredProc.Close(它是否清空集合?)

发布于 2024-08-06 02:39:21 字数 210 浏览 2 评论 0原文

遗留警报 - 这是针对 Delphi 5 代码的。 (我知道它太旧了。它计划被重写......有一天。)

我正在使用 BDE 和 TStoredProc 对象。当我调用 Close 时,这通常会清除我的数据集。然而,我看到奇怪的事情发生,所以我想我会问这个问题。

如果我手动将行添加到数据集(即通过 Append 方法),那么当我调用 close 时,它​​们也会被删除吗?

LEGACY ALERT - This is for Delphi 5 code. (I know it is super old. It is scheduled to be rewritten.... Some day.)

I am using the BDE and the TStoredProc object. When I call Close, this normally clears my dataset. However, I am seeing weird things happen so I thought I would ask this question.

If I have manually added rows to the dataset (i.e. via the Append method) then when I call close are they going to be deleted as well?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

っ〆星空下的拥抱 2024-08-13 02:39:21

不确定 D5 和 BDE,但我想说你必须执行显式的 Post 来确保添加的记录确实被存储。

Not sure with D5 and BDE, but I would say that you have to do an explicit Post to ensure the added record is actually stored.

神也荒唐 2024-08-13 02:39:21

如果你不发帖,他们应该被删除

if you dont post they should be getting deleted

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文