Autor Beitrag
Thunderwave
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 35



BeitragVerfasst: Di 28.03.06 20:07 
mich macht das bald verrückt! Ich find einfach den fehler nich!
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
procedure TForm1.Button2Click(Sender: TObject);
begin
if listbox1.Itemindex>-1 then
begin
listbox1.Items.Delete[Listbox1.Itemindex];
end
else
showmessage('Sie haben keinen Graphen ausgewählt!')
end;

end.


er meint immer das nicht genügent wirkliche Parameter vorhanden sind. Kann mir einer helfen?


Zuletzt bearbeitet von Thunderwave am Di 28.03.06 20:11, insgesamt 1-mal bearbeitet
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 28.03.06 20:09 
Du musst statt Eckiger Klammern (Array-Indizes) runde (Parameterangaben eines Methodenaufrufs) verwenden.

Übrigens: Änder bitte einmal den Titel dieses Topics ... Der ist nix-sagend ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 28.03.06 20:11 
Titel: Re: Fehlersuche!
user profile iconThunderwave hat folgendes geschrieben:
mich macht das bald verrückt! Ich find einfach den fehler nich!
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
procedure TForm1.Button2Click(Sender: TObject);
begin
if listbox1.Itemindex>-1 then
begin
listbox1.Items.Delete(Listbox1.Itemindex);
end
else
showmessage('Sie haben keinen Graphen ausgewählt!')
end;

end.


er meint immer das nicht genügent wirkliche Parameter vorhanden sind. Kann mir einer helfen?

Delete ist eine Funktion und benötigt runde Klammern ;)

Edit: Benny war schneller :D

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Ironwulf
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: Di 28.03.06 20:12 
beim Delete runde klammern nehmen und keine eckigen
Thunderwave Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 35



BeitragVerfasst: Di 28.03.06 20:12 
ich danke sehr! (boah, das mir das nicht aufgefallen is...)
Müscha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 118



BeitragVerfasst: Di 28.03.06 20:46 
netter bekannter Trick,

abe rmich würde viel mehr interessieren, wie du das nette Icon bei deiner Exe geändert hast?
Müscha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 118



BeitragVerfasst: Di 28.03.06 20:55 
oh falsches Fenster,


bin schon bisschen verwirrt und müde! :roll: