Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在运行时针对 TTable 组件更改数据库和表名,但是此错误一直出现在此行:
E2129 Cannot assign to a read-only property
我尝试使用的代码如下:
tblDest.Database := lvDestAlias; tblDest.TableName := lvDestAlias;
使用的变量是先前已初始化的字符串。所以,是的,如果你能提供帮助,我将不胜感激:)
您的问题出在Database只读属性中,您必须DatabaseName改为设置该属性。
Database
DatabaseName