问题解决了,用wr960204的方法,声明时还应加上packed 。
type
TShapeList = (Rectangle, Triangle, Circle, Ellipse, Other);
TFigure = packed record
case TShapeList of
Rectangle: (Height, Width: Real);
Triangle: (Side1, Side2, Angle: Real);
Circle: (Radius: Real);
Ellipse, Other: ();
end;