A
Always
Unregistered / Unconfirmed
GUEST, unregistred user!
我在程序开头的类型结构定义可如下表示:
TMyCustomClass = class of TComponent;
TAdventRecord = record
f: Integer;
c: TMyCustomClass;
x: Integer;
y: Integer;
end;
const
AdventTable: array[0..99] of TAdventRecord =
(
(f: 100; c: TButton; x: 0; y: 120),
(f: 110; c: TLabel; x: 0; y: 240),
(f: 120; c: TImage; x: 0; y: 480),
......(更多的)
);
但我希望 TAdventRecord 的数据可以事先独立存储于一个文件中,
随时如 LoadFrom...一样被地加载.
自当重谢!!!
TMyCustomClass = class of TComponent;
TAdventRecord = record
f: Integer;
c: TMyCustomClass;
x: Integer;
y: Integer;
end;
const
AdventTable: array[0..99] of TAdventRecord =
(
(f: 100; c: TButton; x: 0; y: 120),
(f: 110; c: TLabel; x: 0; y: 240),
(f: 120; c: TImage; x: 0; y: 480),
......(更多的)
);
但我希望 TAdventRecord 的数据可以事先独立存储于一个文件中,
随时如 LoadFrom...一样被地加载.
自当重谢!!!