Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi konstantes array eines records (https://www.delphipraxis.net/17169-konstantes-array-eines-records.html)

darkmonk 29. Feb 2004 12:48


konstantes array eines records
 
Hi

ich wollte wissen wie man ein konstantes array eines record definiert.

gruss monk

MrKnogge 29. Feb 2004 12:57

Re: konstantes array eines records
 
Um so etwas zu erfahren, markiert man den ausdruck "const" und drückt "F1",
aus Konstanten-Record und Konstaten-Array kann man dann folgendes zusammenwürfeln:
Delphi-Quellcode:
type
  TStatus = record
    Bereit : boolean;
    Text : string;
  end;

const
  Status : Array[0..1] of TStatus = (
  (A: true; B: 'Wir sind bereit'),
  (A: false; B: 'Dauert noch'));

darkmonk 29. Feb 2004 13:04

Re: konstantes array eines records
 
thx


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:30 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