我需要在處理大型數組時使用物理內存。在我目前的代碼版本我爲每個數據類型定義的類像這樣 TMyData_01 = class
Const ID=$0001;
public
Data : Integer;
end;
TMyData_02 = class
Const ID=$0002;
public
Data : S
我想利用可變類類型,以儘量減少此代碼,它是從屬性和事件: if ctype='T' then
begin
C:= TTimeEdit.Create(self);
(c as TTimeEdit).OnMouseUp:= Panel2MouseUp;
(c as TTimeEdit).OnMouseDown:= Panel2MouseDown;
(c as