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

标签 delphi sqlite delphi-10.1-berlin livebindings

我正在开发我的第一个适用于 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/

相关文章:

delphi - TOSVersion 给出错误的结果

arrays - Tarray构造函数可以中止以不添加新记录吗?

android - 获取注册的电子邮件帐户

delphi - TList 和 BinarySearch 错误

regex - 如何使用 RegEx 获取 Ini 文件中的节名称

delphi - 正在读取 TIdDNSResolver 的响应?

mysql - 对任意行列表求和

ios - SQLite "database disk image is malformed"

sql - SQLite 中的 CEIL 和 FLOOR