D
DragonInCity
Unregistered / Unconfirmed
GUEST, unregistred user!
例:
RLog=record
a1:String;
a2:string;
procedure button1click(Sender: TObject);
var
Log:RLog;
LogPt:Longint;
begin
Log.a1:='11';
Log.a2:='22';
LogPt:=Longint(@Log);//将记录类型转换为Longint类型
//???????如何再将LogPt转换为记录类型????
end;
RLog=record
a1:String;
a2:string;
procedure button1click(Sender: TObject);
var
Log:RLog;
LogPt:Longint;
begin
Log.a1:='11';
Log.a2:='22';
LogPt:=Longint(@Log);//将记录类型转换为Longint类型
//???????如何再将LogPt转换为记录类型????
end;