pmcgee

Delphi default record structure

Mar 3rd, 2022 (edited)
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.64 KB | None | 0 0
  1. // Thanks to Earl Glyn (2003)   http://www.delphigroups.info/2/8f/521922.html
  2.  
  3. program Rec_Default;
  4. {$APPTYPE CONSOLE}
  5. uses
  6.   System.UITypes,
  7.   System.Classes,
  8.   Vcl.Graphics;
  9.  
  10. type
  11.     TCell = record
  12.       Alignment: TAlignment;   // = taLeftJustify;
  13.       BackColor: TColor;       // = clWindow;
  14.       FontColor: TColor;       // = clBlack;
  15.       FontStyle: TFontStyles;  // = [];
  16.     end;
  17.  
  18. const
  19.     CellConstant:  TCell = (Alignment:  taLeftJustify;
  20.                             BackColor:  clWindow;
  21.                             FontColor:  clBlack;
  22.                             FontStyle:  []);
  23. begin
  24.   var Cell := CellConstant;
  25. end.
Add Comment
Please, Sign In to add comment