Autor Beitrag
THF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 110

Vista
Delphi 2005 professional
BeitragVerfasst: Fr 01.04.05 17:46 
Hallo,

ich habe folgendes Problem :

Über einen Menüeintrag im Formular 1 (Unit1) soll sich das Formular 2 (Unit2) öffnen.

In Formular2 soll nach ButtonOnClick der Wert einer Variablen in Unit1 (Variable1) verändert werden.

Funktioniert irgendwie nicht, weil beide Units aufeinander zugreifen.

Gruß

THF :cry:


Moderiert von user profile iconGausi: Topic aus VCL (Visual Component Library) verschoben am So 03.04.2005 um 17:28
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Fr 01.04.05 17:52 
Zuerst musst du, falls du noch nicht hast, Zugriff auf die Unit bekommen. Siehe das dazu diesen Thread. ;)

Dann schreibst du einfach:
ausblenden Delphi-Quelltext
1:
Unit1.Variable					

für den Zugriff auf die Variable "Variable" in der Unit "Unit1". ;)
THF Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 110

Vista
Delphi 2005 professional
BeitragVerfasst: Sa 02.04.05 06:21 
Hallo,

Danke für die Antwort, ich muß das erst noch ausprobieren.

Gruß

Thf
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 02.04.05 10:32 
user profile iconTHF hat folgendes geschrieben:
Danke für die Antwort, ich muß das erst noch ausprobieren.

Tu das... :mrgreen: