Autor Beitrag
Christoph Englmann
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Fr 30.07.04 12:15 
Hallo,

hab drei formulare...
in der ersten (TGL_LZA_AUSWAHL) wird die variable LZANR als integer deklariert:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
 private
    { Private-Deklarationen }
  public

  end;

var
  FormLZAAuswahl: TFormLZAAuswahl;
  test : string;
  LZANR : integer;



implementation

uses TGL_erstellen, TGL_laden;

{$R *.dfm}


die übergabe der variable an das zweite formular (TGL_erstellen) welches von der ersten Form (TGL_LZAAuswahl) aus gestartet wird, funktioniert einwandfrei...

die übergabe vom zweiten formular an das dritte (TGL_laden) haut aber irgendwie nicht mehr hin...
der compiler meldet:
"Undefinierter Bezeichner := LZANR"

HIlfe!!!

christoph


Moderiert von user profile iconPeter Lustig: Delphi-Tags hinzugefügt.
Peter2002
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 103

Win XP, Win 7
Delphi 2007 / XE3
BeitragVerfasst: Fr 30.07.04 13:18 
Steht das dritte Form in der uses der zweiten?
Christoph Englmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Fr 30.07.04 15:54 
ja tut es:

implementation
uses LZA_Auswahl, TGL_laden;
SvenAbeln
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 334
Erhaltene Danke: 3



BeitragVerfasst: Fr 30.07.04 16:06 
Hallo,

wenn ich dich richtig verstehe willst du aus der dritten Form auf eine Variable der ersten zugreifen, daher muß die Frage lauten:

Steht die erste Unit auch in der Uses der dritten??
Christoph Englmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Fr 30.07.04 17:55 
Hallo,

ne....
vielen Dank..... das wars!!!!!!!!!!!

christoph