Einzelnen Beitrag anzeigen

MrKnogge

Registriert seit: 9. Jun 2003
Ort: Pforzheim
2.458 Beiträge
 
Delphi 2007 Professional
 
#2

Re: konstantes array eines records

  Alt 29. Feb 2004, 13:57
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'));
Christian Bootz
Einstein ist tot, Newton ist tot,
und mir ist auch schon ganz schlecht...
  Mit Zitat antworten Zitat