Autor Beitrag
Adam Weishaupt
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 40



BeitragVerfasst: Di 20.07.04 15:02 
hoi,

ich will eine combobox in auf der form4 von form6 aus aendern..
aber wenn ich dann z.b. sowas mache:

ausblenden Delphi-Quelltext
1:
if geld > 100 then form4.combobox1.items[0]:='Über 100€';					


"geld" ist eine variable in unit6 deklariert..
nur geht das nicht.. der fehler kommt: listindex out of bounds

:-/
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Di 20.07.04 15:21 
D.h., dass in der ComboBox keine Einträge stehen. Entweder meinst du das:if geld > 100 then form4.combobox1.items.Add('Über 100€'); oder das:if geld > 100 then form4.combobox1.Text:='Über 100€';

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
Adam Weishaupt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 40



BeitragVerfasst: Di 20.07.04 15:23 
:shock: :shock: :shock:
:D :D :D
:lol: :lol: :lol:

danke!! :-D

lol warum bin ich nicht selbst draufgekommen!? LOL