首先我在unitpub里定义了一个结构
type
TRTUDevice = record //记录定义
SN:string;
add:integer;
end;然后在一个按钮的代码里
var
f: file of TRTUDevice;然后delphi就报错了:
Type 'TRTUDevice' needs finalization - not allowed in file type我网上找的一些资料都这么用的,我该怎么办?
type
TRTUDevice = record //记录定义
SN:string;
add:integer;
end;然后在一个按钮的代码里
var
f: file of TRTUDevice;然后delphi就报错了:
Type 'TRTUDevice' needs finalization - not allowed in file type我网上找的一些资料都这么用的,我该怎么办?
TRTUDevice = record //记录定义
SN: string[50];
add: integer;
end;
SN不能用string,后面要加长度