Mar*_*l P 3 delphi constants point
早上好,我正在尝试在 Delphi 中声明常量 TPoint,你是如何做到的?
以下均无效
// ...
const POS_A : Tpoint = (3,3);
const POS_B : Tpoint = Point(3,10);
const POS_C : Tpoint = Tpoint(3,20);
const POS_D : Tpoint = TPoint.create(3,30);
// ...
Run Code Online (Sandbox Code Playgroud)
有什么线索吗?
根据常量的文档,特别是有关记录的部分,您可以编写
const
MyPoint: TPoint = (X: 3; Y: 7);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
599 次 |
| 最近记录: |