【发布时间】:2014-08-14 13:10:24
【问题描述】:
我有以下陈述:
type tx = Record
a : string;
b : integer;
end;
const
x : tx = (a: 'a'; b: 1);
xs : array of tx = ((x));
编译器给了我:“Undeclared Identifier 'x'”
我不明白为什么,因为 'x' 是在 'xs' 数组声明和常量类型匹配之前声明的。我感谢任何启示;
【问题讨论】:
-
我试图修复你的代码。但它仍然与您报告的错误不匹配。请不要发布假代码。
标签: constants delphi-xe4 delphi