type
TByteRec = record
Lo, Hi: Byte;
end;
TWordRec = record
Low, High: Word;
end;var
B: Byte;
W: Word;
L: Longint;
P: Pointer;begin
W := $1234;
B := TByteRec(W).Lo;
TByteRec(W).Hi := 0;
L := $1234567;
W := TWordRec(L).Low;
B := TByteRec(TWordRec(L).Low).Hi;
B := PByte(L)^;
end;begin第二行,B := TByteRec(W).Lo,一个Word类型的变量怎么可以转换成record类型???而且TByteRec也没有声明成一个变量啊。