Thema: Delphi const array of record

Einzelnen Beitrag anzeigen

Quake

Registriert seit: 25. Aug 2003
222 Beiträge
 
Delphi 7 Enterprise
 
#1

const array of record

  Alt 25. Mär 2005, 17:51
Wie kann ich einem Array of Record Konstanten zuordnen?
Delphi-Quellcode:
type
  TRec = record
    Text: string;
    Zahl: integer;
  end;

const
  MyArray: array[0..1] of TRec = (('Str1',4),('str2',7)); // wie muss dieser Syntax richtig aussehen?
ciao
  Mit Zitat antworten Zitat