Autor Beitrag
Naxor
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 76

alle
delphi, C++, php, html, java, flash, XML
BeitragVerfasst: Mo 21.09.09 19:18 
Hi vieleicht kann mir jemand helfen ich will streams aus dem internet laden nun hab ich das problem das auf einmal diese error meldung kommt mit der delphihilfe gibs keine Lösung

[Error] Unit1.pas(1023): Identifier redeclared: 'TForm1.Timer_BufferingTimer'

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
procedure TForm1.Timer_BufferingTimer(Sender: TObject);
var tg : integer; // Hier zeigt er den Fehler an 
begin
 tg := BassVideo_GetCurrentBuffering(chan);
 if tg = 0 then exit;
 Form1.StatusBar1.Panels[1].Text := 'Lade Datei....Bitte Warten!!!' + inttostr(tg) + ' %';
 if tg = 100 then
  begin
   Timer_Buffering.Enabled := False;
   Form1.StatusBar1.Panels[1].Text := 'Lade Datei';

end;
FinnO
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1331
Erhaltene Danke: 123

Mac OSX, Arch
TypeScript (Webstorm), Kotlin, Clojure (IDEA), Golang (VSCode)
BeitragVerfasst: Mo 21.09.09 19:51 
scheint, als hättest du die Funktion bereits implementiert.
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Mo 21.09.09 19:55 
Jap. Und tu dir bitte einen Gefallen und mach das Timer_ davor weg, du darfst ruhig vollständig neue Namen geben und diese müssen nicht dreifach_gesichert_redundant_extralang sein ;)

mfG,

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
Naxor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 76

alle
delphi, C++, php, html, java, flash, XML
BeitragVerfasst: Mo 21.09.09 21:12 
ahhh verstehe dachte die namen müssen so bleiben damit das auch funktioniert. Ok werde es mal versuchen

Edite: danke für eure Hilfe habe den code rausgenommen jetzt gehts super verstehe nur nicht warum das jetzt kam hatte den code nur eingetragen dann complementiert und dann wollte ich den quelltext nur weiter bearbeiten und dann kam der Fehler
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Mo 21.09.09 21:41 
Hi :)

Im Zweifelsfall war die IDE schuld ;)

Zum Prozedurnamen bliebe noch zu sagen, dass der an mehreren Stellen, teils außerhalb des direkt sichtbaren Quelltextes, auftaucht und dann dort auch geändert werden muss. Neuere Delphi-Verionen bieten dazu den Popup-Menüeintrag Refatoring\Rename, bei älteren Versionen musst du wohl den Namen dort, bei der Deklaration sowie im Object-Inspector unter BufferingTimer\Events ändern.

mfG,

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)