gpt4 book ai didi

delphi - LiveBindings 在设计时工作,但在运行时不工作

转载 作者:行者123 更新时间:2023-12-03 19:31:49 25 4
gpt4 key购买 nike

我正在开发我的第一个适用于 Windows 和 MacOSX 的多平台应用程序。我决定使用 SQLite 和 StringGrid 来检查连接性。通过查看 Delphi 10.0 附带的 SQLite 示例,我已经在表单上放置了所有必要的组件。

我运行了将我的 FDTable 连接到 StringGrid 的 LiveBindings 向导。我可以激活表格并显示我的数据(从 BatchMove 导入),见附件。但是当我运行应用程序时,连接我的 FDConnection 和我的表,网格不会被填充。我错过了什么?

enter image description here

enter image description here

enter image description here

最佳答案

我正面临这个问题。
数据集有时会在运行时失去值(value)。
我在打开此类数据集后用一行代码解决了这个缺点

BindSourceGPS.DataSet:=TransTable;

格里戈尔

关于delphi - LiveBindings 在设计时工作,但在运行时不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40120875/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com