Autor Beitrag
hansg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 168

Win XP Professional SP3, Vista Ultimate 32 SP1
Delphi 6 Professional
BeitragVerfasst: So 27.08.06 11:24 
Hallo,
ich habe ein Tutorial gefunden zwecks Daten speichern und lesen.
Leider habe ich ein Problem mit dem deklarieren, wo genau müssen folgende Angaben hin?

Zitat:
type
TDatensatz = record
ID: integer;
Name: AnsiString;
end;

TDatenArray = array of TDatensatz


Link zum Tutorial

_________________
Gruß Hans
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: So 27.08.06 12:15 
Nach der Typendeklaration von TForm1:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
type
  TForm1 = class(TForm)
  //...
  end;
  
  TDatensatz = record 
    ID: integer; 
    Name: AnsiString; 
  end; 

  TDatenArray = array of TDatensatz


var
  Form1: TForm1;
  //...

implementation
  //...