我正在使用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)