任务:科目余额表 AccountBalanceFrm 窗体读取报错 ================================================================ 一、问题现象 打开或加载科目余额表窗体 AccountBalanceFrm.pas 时, Delphi IDE 先后弹出两个读取错误: 错误 1:Error reading SelectSubjectTree.Filtering.ColumnMRUItemsList: Property Filtering.ColumnMRUItemsList does not exist. 错误 2:Error reading SelectSubjectTree.Filtering.Visible: Property Filtering.Visible does not exist. 二、根因分析 1. AccountBalanceFrm.dfm 中 SelectSubjectTree(TcxDBTreeList)保存了当前 DevExpress 版本 不支持的 Filtering 相关属性。 2. 当前组件版本没有 Filtering.ColumnMRUItemsList 和 Filtering.Visible 这两个子属性, 因此 IDE 读取 DFM 时报错。 三、修复方案 文件:D:\12.BuildXe3\BlueWhaleERPSources\ACT\BlueWhale_Std_ACT_AccountBalanceC\AccountBalanceFrm.dfm 删除的两行: Filtering.ColumnMRUItemsList = True Filtering.Visible = fvNonEmpty 修改后相关上下文: DataController.KeyField = 'AMA001' LookAndFeel.Kind = lfOffice11 四、验证步骤 1. 重新打开 AccountBalanceFrm.pas,确认不再出现任何读取错误。 2. 重新编译 BlueWhale_Std_ACT_AccountBalanceC 模块。 3. 运行科目余额表功能,确认窗体正常加载。 五、备注 未修改 AccountBalanceFrm.pas 代码,仅修正了 DFM 持久化属性。 全项目搜索后未发现其他 DFM 文件存在 ColumnMRUItemsList 或 Filtering.Visible 属性。