tbs0212.pp 265 B

1234567891011121314151617181920
  1. program proptest;
  2. {$mode objfpc}
  3. type
  4. TMyRec = record
  5. Int: Integer;
  6. Str: String;
  7. end;
  8. TMyClass = class
  9. private
  10. FMyRec: TMyRec;
  11. public
  12. property AnInt: Integer read FMyRec.Int;
  13. property AStr: String read FMyRec.Str;
  14. end;
  15. begin
  16. end.