相关疑难解决方法(0)

如何设置默认值以在delphi中记录

我正在使用RAD XE7.在我的Delphi应用程序中,我想为Records字段设置默认值.

我尝试了下面的代码,但它没有编译,我知道这是错误的.我还有别的办法吗?

 TDtcData = record
    TableFormat     : TExtTableFormat = fmNoExtendedData;
    DTC             : integer = 0;
    Description     : string = 'Dummy';
    Status          : TDtcStatus;    
    OccurenceCnt    : integer =20;
    FirstDTCSnapShot: integer;
    LastDTCSnapShot: integer;
  end; 
Run Code Online (Sandbox Code Playgroud)

delphi default record delphi-xe7

2
推荐指数
2
解决办法
3740
查看次数

标签 统计

default ×1

delphi ×1

delphi-xe7 ×1

record ×1