Thema: Delphi const array of record

Einzelnen Beitrag anzeigen

Dax
(Gast)

n/a Beiträge
 
#2

Re: const array of record

  Alt 25. Mär 2005, 17:54
So muss es gehen
Delphi-Quellcode:
type
  TRec = record
    Text: string;
    Zahl: integer;
  end;

const
  MyArray: array[0..1] of TRec = ((Text: 'Str1'; Zahl: 4), (Text: 'str2'; Zahl: 7));
  Mit Zitat antworten Zitat