Einzelnen Beitrag anzeigen

Benutzerbild von haentschman
haentschman

Registriert seit: 24. Okt 2006
Ort: Seifhennersdorf / Sachsen
5.303 Beiträge
 
Delphi 12 Athens
 
#12

AW: Delphi 12.1 verfügbar/veröffentlicht

  Alt 5. Apr 2024, 11:26
Zitat:
Es ruiniert jetzt keine strict private oder strict protected blöcke mehr in der Klassendeklaration!
vorher:
Delphi-Quellcode:
  TArticlePrices = class(TBaseObject)
  strict private
  {$REGION 'Fields'}
    FArticlePriceList: TArticlePriceList;
    FArticlePriceCustomerList: TArticlePriceCustomerList;
  {$ENDREGION}
  public
    constructor Create;
    destructor Destroy; override;
    property ArticlePriceList: TArticlePriceList read FArticlePriceList write FArticlePriceList;
    property ArticlePriceCustomerList: TArticlePriceCustomerList read FArticlePriceCustomerList write FArticlePriceCustomerList;
    property Test: Double read FTest write FTest; // -> Ctrl+Shift+C
  end;
nachher:
Delphi-Quellcode:
  TArticlePrices = class(TBaseObject)
  strict private
  {$REGION 'Fields'}
    FArticlePriceList: TArticlePriceList;
    FArticlePriceCustomerList: TArticlePriceCustomerList;
  private
    FTest: Double;
  {$ENDREGION}
  public
    constructor Create;
    destructor Destroy; override;
    property ArticlePriceList: TArticlePriceList read FArticlePriceList write FArticlePriceList;
    property ArticlePriceCustomerList: TArticlePriceCustomerList read FArticlePriceCustomerList write FArticlePriceCustomerList;
    property Test: Double read FTest write FTest;
  end;

Geändert von haentschman ( 5. Apr 2024 um 11:32 Uhr)
  Mit Zitat antworten Zitat