Should’t this work? This would be a good way to set default record values but it doesn’t seem to be supported.
type TMyRecord = record public a: integer; b: string; const default: TMyRecord = (a: 100; b: 'foo'); end; var r: TMyRecord = TMyRecord.default; Regards, Ryan Joseph _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal