Autor Beitrag
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 01.02.05 20:49 
Moin!

Ich kriege einfach die Syntax für so ein Konstrukt nicht mehr auf die Kette:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
type
  TRecord = record
    var1: Integer;
    var2: Boolean;
  end;

const
  test: ARRAY[0..2] of TRecord =
   ( (),
     (),
     () )
;

Wie muß ich da noch mal die Record-Elemente angeben... :gruebel: Kann mir da einer auf die Sprünge helfen?

cu
Narses
Sprint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 849



BeitragVerfasst: Di 01.02.05 22:51 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
const
  test: ARRAY[0..2] of TRecord = (
    (var1 : 7; var2 : True),
    (var1 : 8; var2 : False),
    (var1 : 9; var2 : True));

_________________
Ciao, Sprint.
Narses Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 01.02.05 23:10 
Moin!

Jau, Mensch, Danke (das Semikolon war mir entfallen)! :wink: (Hast mir bei dem blöden OverlayIndex schon das Brett vom Kopf gezerrt... :roll: )

cu
Narses