Autor Beitrag
mexx
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Mo 20.03.06 13:24 
Hallo,

ich habe eine Form, welche durch eine Schaltfläche einen Dialog öffnet. Im Dialog brauche ich Parameter. Bis jetzt habe ich das so gelöst.

ausblenden Delphi-Quelltext
1:
PZDataDlg.QueryPZDataDlg.Params := QueryGrid.Params;					


Da ich jedoch nun noch 2 weitere Parameter im Dialog brauche, möchte ich eine andere Lösung realisieren. Ich denke dabei an eine Procedure. Was muss ich tun, um einer Procedure in einer anderen Unit, Parameter zu übergeben aus einer anderen Unit?
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Di 21.03.06 08:08 
du kannst doch die ShowMethode deines Dialoges einfach um die Parameter erweitern.
Oder du deklarierst in der Unit1 eine globale Variable und greifst im Dialog mit Unit1.Varaiable darauf zu (ok nicht wirklich gut) ;)
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Di 21.03.06 08:10 
Ich habe in der SQL eine Where-Bedingung eingebaut, die einen Parameter benötigt und diesen dann beim öffnen vorher gesetzt. THX