Autor Beitrag
Zaubär
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 99



BeitragVerfasst: So 07.09.03 10:02 
Hallo,

wie macht ihr eigentlich eine "gute" Variablenübergabe in Delphi zwischen einzelnen Fenstern ??
Hab bis jetzt noch keine gute Idee gehabt wie man das am besten realisiert....
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: So 07.09.03 16:22 
zwischen Fenster ein und derselben Form:
Post-/sendMessage(FensterHandle,Message,Parameter,Zeiger auf irgentwas) oder

Fenster 2 bekommt via Property einen Zeiger(!) auf die Variable des Fensters 1 mit.

Die Frage stellt sich, warum Variablenübergabe bei Kapselung?

grez
msch

_________________
ist das politisch, wenn ich linksdrehenden Joghurt haben möchte?
Zaubär Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 99



BeitragVerfasst: So 07.09.03 18:20 
Naja da hab ich mich etwas falsch ausgedrückt, sorry.

Ich meinte eigentlich z.B. zwischen form1 & form2
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: So 07.09.03 18:30 
Form1:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
  public
    { Public declarations }
    bla: integer;
  end;


Form2:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
implementation

uses unit1;

{...}

asd := form1.bla;
Zaubär Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 99



BeitragVerfasst: So 07.09.03 18:38 
Danke!

Werd mal probieren ob das klappt!