Autor Beitrag
sintec
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 133



BeitragVerfasst: Do 19.07.07 13:10 
Hallo,

Habe ein kleines Problem:


ausblenden Delphi-Quelltext
1:
2:
//in einer Funktion in Unit
Form1.ListBox.Items.Add('test');


aber die Listbox fügt es nicht hinzu.

woran könnte es liegen?


Moderiert von user profile iconKlabautermann: Topic aus Sonstiges (Delphi) verschoben am Do 19.07.2007 um 13:16
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Do 19.07.07 13:12 
Kommt denn ein Fehler?

Heist deine Listbox auch Listbox oder Listbox1?

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
sintec Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 133



BeitragVerfasst: Do 19.07.07 13:18 
es kommt kein Fehler und der Name der Listbox ist 100% richtig weil er es mit vorschlägt. (Die listbox heißt eigentlich anders, war nur ein beispiel)

in der Listbox sind zu der Zeit schon einige Einträge, aber damit hängt es nicht zusammen, denke ich.
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Do 19.07.07 13:20 
Wird der Code auch aufgerufen?
Pack mal ein ShowMessage in die Zeile davor/dahinter.

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

Win XP Professional
Delphi 7 PE, Delphi 3 PRO
BeitragVerfasst: Do 19.07.07 13:23 
sintec hat folgendes geschrieben:
in der Listbox sind zu der Zeit schon einige Einträge, aber damit hängt es nicht zusammen, denke ich.


Eigentlich nicht, aber du weißt schon, dass der Eintrag Form1.ListBox.Items.Add('test'); an letzter Stelle platziert wird?
sintec Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 133



BeitragVerfasst: Do 19.07.07 13:26 
user profile iconCalculon hat folgendes geschrieben:
Eigentlich nicht, aber du weißt schon, dass der Eintrag Form1.ListBox.Items.Add('test'); an letzter Stelle platziert wird?


Das ist nicht das Problem, wenn es funktioniert hätte.
Calculon
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 676

Win XP Professional
Delphi 7 PE, Delphi 3 PRO
BeitragVerfasst: Do 19.07.07 13:28 
Dann fällt mir auch nur noch jakobwenzel's Tipp dazu ein.
sintec Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 133



BeitragVerfasst: Do 19.07.07 13:35 
LOL

Man bin ich blöd. Habe vergessen, dass die ListBox in einer anderen Funktion, die danach ausgeführt wird, die ListBox leer macht :D

Danke für die Hilfe.