Autor Beitrag
Christian V.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Sa 09.04.05 10:19 
Hallo, in meinem Programm bekomme ich immer den selben Fehler:
[Fataler Fehler] Unit1.pas(42): Interner Fehler: C1091
ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
unit main;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Memo1: TMemo;
    procedure FormCreate(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;
  d,x,c,i:int64;

  a,b:string;
implementation

{$R *.dfm}
function umdreh(x:int64):boolean;
begin
   a:=inttostr(x);
   d:=0;
   For c:= length(a) downto 1 do begin
      d:=d+1;
      b[d]:=a[c];

   end;
   if a=b then begin
      result:=true;
   end
   else begin
      result:=false;
   end;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
For i:=1 to 500000 do begin
   if umdreh(i) then begin
      if (i mod 11)=0 then begin
         memo1.Lines.Add(i);
      end;
   end;

end;
end;

end.

Andere Programme kan ich kompilieren.

_________________
Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?
Mike19
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 256

Win XP, Vista, Win 7
Delphi 2005, Turbo Delphi
BeitragVerfasst: Sa 09.04.05 11:04 
Hallo,

schau Dir mal Deine Variablen c und i an, in For Schleifen sind doch nur einfache lokale Variablen zulässig.
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Sa 09.04.05 11:14 
Nun, den Fehler mit Lokalen Variabeln hatte ich schon öfters, aber es ist nur eine Warnung.
Kopilllieren tut er trotzdem.
Aber wie meinst du "lokale" Variabeln?

_________________
Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?
Mike19
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 256

Win XP, Vista, Win 7
Delphi 2005, Turbo Delphi
BeitragVerfasst: Sa 09.04.05 11:17 
Hallo,

ich meine, dass diese zwischen function oder procedure und begin deklariert werden müssen.