![]() |
Records und Konstanten
Hallo,
ich habe einen neuen Typ erstellt und möchte nun Konstanten von diesem Typ deklarieren. Mein Typ ist dabei ein record: z.b.:
Delphi-Quellcode:
nun möchte ich zum beispiel einmal die Konstante "Deutsch" mit Title='Anwendung' und Status='Bereit' und einmal die Konstante des Typs Tlanguage mit Title='Application' und Status='Ready' erstellen. Wie geht das?
type
Tlanguage=record title, status: string end; Kann man das mit records machen oder muss ich das mit Klassen und der Konstanten Zuweisung in dem constructor realisieren? mfg Kahpee |
AW: Records und Konstanten
cl:Tlanguage=(title:'a';Status:'b');
|
AW: Records und Konstanten
Vielen Dank!
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:03 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz