Autor Beitrag
xel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Mo 17.01.05 12:21 
Also ich will von einem fsMDIChild zu einem anderen fsMDIChild eine Varable definieren, aber
bekomme immer einer Adressen Fehlermeldung.. von denen bekanntlich niemand was anfangen kann?!
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TDebitoren.BitBtn5Click(Sender: TObject);
begin
  TSuchbox.Create(Self);
  Suchbox.StatusBar1.Panels[1].Text := 'Hallo Text';
end;


was passiert hier warum bekomme ich eine fehlermeldung und was kann ich dagegen tun.


thx
xel

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 17.01.05 12:25 
Titel: Re: kann keine Variablen in andere fsMDIChild'ern übergeben!
Ändere mal wie folgt:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TDebitoren.BitBtn5Click(Sender: TObject);
begin
  Suchbox := TSuchbox.Create(Self);
  Suchbox.StatusBar1.Panels[1].Text := 'Hallo Text';
end;
xel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Mo 17.01.05 17:26 
Titel: Immernoch Fehlermeldung wenn ich von anderen Form zugreife?!
Hallo

also ich starte mein Form jetzt so einsprechend, aber wenn ich meine Funktionen in
diesen Form verwende ,die absolute Pfade haben, bekomme ich immernoch eine fehlermeldung.

was ist den jetzt los?

mfg
xel
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 17.01.05 18:33 
Welche?
Bin heute im Raten nicht so gut. :wink:
xel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Di 18.01.05 09:10 
Titel: Folgendes....
Also ich starte von meinem "Form1" ein "fsMDIChild" das halt "Form2" heist.. ungefär so:
ausblenden Delphi-Quelltext
1:
Form2 := TForm2.Create(Self); //das funktioniert auch					

und jetzt habe ich ein meinem "Form2" eine funktion, die ich auch mit einem Button auf Form2 starte.. dann bekomme ich wieder eine Adress fehlermeldung.. meine funktion in "Form2" sieht so aus:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
function viewgrid():string;
begin
  for i := 0 to Form2.DBGrid1.Columns.Count - 1 do
  begin
    Form2.DBGrid1.Columns[i].Width := 100;
  end;
end;

ja, was nu?!?!?!

thx
xel

Moderiert von user profile iconTino: Delphi-Tags hinzugefügt.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 18.01.05 09:26 
Die Funktion sollte eigentlich laufen. Habe das auch kurz bei mir getestet.
Bitte beschreibe genau die Stelle, an der der Fehler auftritt. Ansonsten kann ich nur raten. Setze einen Breakpoint kurz vor die mögliche Fehlerstelle und gehen dann mit F8 schrittweise durch den Source.
xel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Di 18.01.05 10:07 
Titel: Kannst du mir sonnst deine daten senden!?
Also meine Kontaktdaten:
email = gymail@web.de
yahoo = xel36
msn =xelorius
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 18.01.05 10:21 
Das kannst du auch einfach in dein Profil eintragen :wink:
btw: was soll uns das eigentlich sagen?
xel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Di 18.01.05 10:48 
Titel: Du hast doch gesagt das es bei dir funktioniert...
Du hast doch gesagt das es bei dir funktioniert, schick die funktionierenden daten rüber...
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 18.01.05 10:57 
Ich wollte mich erst aufregen. Mach ich aber nicht.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure TfrmDBTabellen.Button1Click(Sender: TObject);
var
  i : Integer;
begin
  for i := 0 to grdTabellen.Columns.Count - 1 do
  begin
    grdTabellen.Columns[i].Width := 100;
  end;
end;

Und, hilft dir das jetzt was??? :evil: