Autor Beitrag
ImbaPanda
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 98

Windows XP/Vista
Delphi 7 Professional/ Rad Studio 2009
BeitragVerfasst: Do 02.08.07 11:50 
Also mein Problem sieht wie folgt aus.
Ich will einen Array Speichern


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
If SaveDialog.Execute
  Then
   Begin
   Stream:=TFileStream.Create(SaveDialog.FileName,fmCreate);
   Try
    Len:=Length(EigeneObjekte);                   <-----(Error:Inkompatible Typen)
    Stream.Write(Len,SizeOf(Len));
    Stream.Write(EigeneObjekte[1].EigeneGeraden[1].Name,SizeOf(EigeneObjekte.EigeneGeraden[1].Name)); <--(Error:          
 Klasse besitzt keine STandarteigenschaft)   
   Finally
    Stream.Free;
   End;


und die Deklaration

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
Type
TEigenesObjekt=Record
   Name:String[255];
   Status:Boolean;
   EigeneGeraden:Array[1..25Of TGerade;
   EigeneEbenen:Array[1..25Of TEbene;
   EigeneVielecke:Array[1..25Of TVieleck;
  End;

Var
EigeneObjekte:Array[1..25Of TEigenesObjekt;



Nur i wie funzt das Ganze nicht, obwohl ich das an anderer Stelle im Code genauso mache.
Der spuckt immer 2 Errors aus(Siehe Code)
Wer Ideen hat immer her damit.

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 02.08.07 12:03 
Moin!

Wie ist denn die Deklaration von Len?

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
ImbaPanda Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 98

Windows XP/Vista
Delphi 7 Professional/ Rad Studio 2009
BeitragVerfasst: Do 02.08.07 12:09 
Hier

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
Var
 SaveDialog:TSaveDialog;
 Stream:TStream;
 i,j:Integer;
 Len:Longint;


Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt
ImbaPanda Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 98

Windows XP/Vista
Delphi 7 Professional/ Rad Studio 2009
BeitragVerfasst: Do 02.08.07 12:19 
Hat sich schon erledigt.
Der ist nur durcheinander gekommen, weil eine Komponente auf dem Formular genauso hieß^^