Autor Beitrag
Abu36
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 59



BeitragVerfasst: Do 23.03.06 20:04 
hi,

wie kann ich denn eine variable, die in form2 einen wert zugeschrieben bekommt, in die nächste form, also form3 oder so, übernehmen?
Waldteufel
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 23.03.06 20:08 
Hi Abu. :wave:

Ich würde dir empfehlen, die Variable bei Form2 unter public zu deklarieren, die Unit, in der Form2 deklariert ist, bei Form3 unter implementation einzubinden und dann über Form2.MeineVariable darauf zuzugreifen.

(Diese Methode ist nur sinnvoll, wenn Form2 nicht mehrfach instanziiert wird!)
starsurfer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 334

Win 95, Win 98, Win XP, Win Vista, Linux
D5 Enterprise ,D2005, D6 Personal, Visual C++ Express 2005, C++ Builder 6 E, Dev-C++
BeitragVerfasst: Do 23.03.06 20:10 
ausblenden Delphi-Quelltext
1:
2:
3:
  public
    var_form2:integer;{ Public-Deklarationen }
  end;

so tust du die variable in form2 deklarieren und...
ausblenden Delphi-Quelltext
1:
form2.var_form2;					

so tust du sie benutzen in form3...

///EDIT: arrrrr... zu langsam :?

_________________
GEIZ IST GEIL! - Ihr Sozialamt