Autor Beitrag
Grafix
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 122

Windows 7 Professional
Delphi 2009, PHP, Prolog, Python, Java
BeitragVerfasst: Sa 24.04.10 22:23 
So - noch ein Thread:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
      Pfad := IntToStr(I + (K * X) - X);

      MyPanel := TPanel.Create(Self);
      MyPanel.Name := 'Panel' + Pfad + 'Player1';
      MyPanel.Caption := Pfad;


Das verrückte: Bei MyPanel.Name ist das Ergebnis von Pfad anders, als bei MyPanel.Caption...
Was ist da schiefgelaufen?
Lg

Grafix
Mitmischer 1703
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Sa 24.04.10 22:25 
Hä?

Machst du das mit dem Debugger fest oder errätst du das an den Ausgaben Name und Caption?

_________________
Die Lösung ist nicht siebzehn.
Grafix Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 122

Windows 7 Professional
Delphi 2009, PHP, Prolog, Python, Java
BeitragVerfasst: Sa 24.04.10 22:30 
OH MEIN GOTT ich hab den Fehler gefunden - habe wohl schon zu lange drangesessen. Tut mir leid, dass ich gerade das Forum zugespammt habe :S
Mitmischer 1703
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Sa 24.04.10 22:31 
Ist doch egal ;)

Was war denn der Fehler?

_________________
Die Lösung ist nicht siebzehn.
Grafix Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 122

Windows 7 Professional
Delphi 2009, PHP, Prolog, Python, Java
BeitragVerfasst: Sa 24.04.10 22:47 
Ich hatte das ganze überprüft mit: ShowMessage(IntToStr(TPanel(Sender).Tag)); aber das gibt ja nicht den Namen zurück sondern den TAG!!! Und da hatte ich nicht Pfad stehn sondern irgendwas anderes - daher das falsche Ergebnis. Bin erst drauf gekommen nach dem ersten Beitrag hier - der mich darauf aufmerksam gemacht hat... wie gesagt... zu lange schon vor Delphi heute ;)
Mitmischer 1703
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Sa 24.04.10 22:48 
okay :lol:

Ja, für mich wirds auch gleich mal Zeit ;)

_________________
Die Lösung ist nicht siebzehn.