Autor Beitrag
hui1991
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 433

Windows XP, WIndows Vista
Turbo Delphi Explorer| Delphi, PHP,Blitzbasic
BeitragVerfasst: So 09.04.06 15:33 
Hi,

ich habe ein Problem wo ich einfach nicht weiter komme.
Ich habe in der Form1 11Variablen erstellt.
Ich möchte diese in Form2 lesen und ändern.
Dies soll beim klick auf Übernehmen auf Form2 geschehen.
Könnt ihr mir verraten wie ich das am besten mache?
Weis einfach nicht mehr nach was ich suchen soll.
Ich würde eine umständlichen Weg über eine Datei machen.
Da ich oft im Forum nicht verstanden werde hier nochmal:
Ich versuche Variablen von Form1 in Form2 lesen und ändern um sie wieder in Form1 zu benutzen.

MfG
hui1991
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: So 09.04.06 15:37 
definier deine Variablen einfach in Form1 unter "public", dann kannst du von allen anderen Units des Projektes darauf zugreifen. :wink:
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 09.04.06 15:40 
Binde über die Uses-Anweisung in Form2 deine Form1 dort ein und greife von dort aus dann auf Form1.DeineVars zu ... Die Variablen sollten dazu unter Public aufgeführt sein ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
hui1991 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 433

Windows XP, WIndows Vista
Turbo Delphi Explorer| Delphi, PHP,Blitzbasic
BeitragVerfasst: So 09.04.06 15:41 
Danke,
also das wusste ich jetzt garnicht.
Naja es ging, dann als ich auf Form2 dann 'Form1.' vor dem Variablen Namen gesetzt hab.

Jetzt kann ich wieder weiter programmieren ;)

MfG hui1991