Autor Beitrag
Andidreas
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 114

Windows XP Pro
BDS 2006
BeitragVerfasst: Di 26.09.06 17:17 
Wie kann oder muß ich einen Parameter an ein Formular, dass mit Form4 := TForm4.Create(nil) erstellt übergeben. Sender ist nämlich leer.
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Di 26.09.06 18:01 
Wofür brauchste das? / Was willste machen?

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Andidreas Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 114

Windows XP Pro
BDS 2006
BeitragVerfasst: Di 26.09.06 18:06 
In einer Listbox Befehle editieren. Und da man das nicht laufen macht, möchte ich die Form nur aufrufen wenn nötig.
Andidreas Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 114

Windows XP Pro
BDS 2006
BeitragVerfasst: Di 26.09.06 18:59 
Hat sich erledigt. Hab es über Form1.Tag erledigt.
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Di 26.09.06 20:18 
Obwohl du es schon gelöst hast:
  1. Einen eigenen Konstruktor erstellen und diesem die Parameter übergeben.
  2. Die Parameter direkt über das Formular ansprechen (Form1.XY).
  3. Globale Variable setzen (ganz unschön!).
Gruß Hape!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Mi 27.09.06 09:42 
user profile iconwulfskin hat folgendes geschrieben:
Obwohl du es schon gelöst hast:
  1. Einen eigenen Konstruktor erstellen und diesem die Parameter übergeben.
  2. Die Parameter direkt über das Formular ansprechen (Form1.XY).
  3. Globale Variable setzen (ganz unschön!).
Gruß Hape!

oder
4. Application.CreateForm (TForm4,Form4);

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Mi 27.09.06 10:04 
user profile iconKroko hat folgendes geschrieben:
4. Application.CreateForm (TForm4,Form4);
Ok, aber wo/wie übergibst du die Parameter???

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Mi 27.09.06 10:18 
Welche Parameter :nixweiss:

ansonsten
ausblenden Delphi-Quelltext
1:
Form4.Top := 80;					

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Mi 27.09.06 10:22 
user profile iconKroko hat folgendes geschrieben:
Welche Parameter :nixweiss:
Siehe Fragestellung:
user profile iconAndidreas hat folgendes geschrieben:
Wie kann oder muß ich einen Parameter an ein Formular, dass mit Form4 := TForm4.Create(nil) erstellt übergeben. Sender ist nämlich leer.
user profile iconKroko hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
Form4.Top := 80;					
Hatte ich schon ;):
user profile iconwulfskin hat folgendes geschrieben:
  1. Einen eigenen Konstruktor erstellen und diesem die Parameter übergeben.
  2. Die Parameter direkt über das Formular ansprechen (Form1.XY).
  3. Globale Variable setzen (ganz unschön!).

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Mi 27.09.06 11:28 
imho ist es besser die Form über Application.CreateForm zu erstellen, damit entfällt das Create (nil), was man dann mit der Rest macht ...

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!