Autor Beitrag
ZO_orki
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: So 05.03.06 20:09 
Das ist die Fehlermeldung, die ich bekomme.
Ich weiß nicht warum, eigentlich weiß ich
nicht einmal was mir die Fehlermeldung sagt.

ausblenden Delphi-Quelltext
1:
a:= a + IntToBin(Ord(text[i]));					


Das ist die Befehlszeile in der der Fehler auftritt.
IntToBin ist eine von mir geschriebene Funktion,
und a habe ich auch deklariert: var a: string;

Ich hoffe ihr könnt mir sagen, wieso, weshalb, warum.
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: So 05.03.06 20:14 
Das ist keine Fehlermeldung, sondern nur ein Hinweis.

Da du a := a + b; schreibst, aber davor nie sagst, was in a steht, ergibt sich folgendes:
a := '' + b; <--- das bedeutet, dass du das a + auch weglassen kannst.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
ZO_orki Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: So 05.03.06 20:17 
naja... eigentlich sieht das ganze so aus:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
i := 1;
a:= '';
while (text[i] <> '') do
   begin
     a:= a + IntToBin(Ord(text[i]));
     inc(i);
   end;


Da sich der Code in einer Schleife befindet ist es schon nötig.
Außerdem definiere ich a ja als ''. Und: Ich verwende ähnliche
Zeilen mehrmals im ganzen Programm und dies ist die einzige
Stelle mit Fehlermeldung...
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: So 05.03.06 20:21 
Mh... dann dürfte die Meldung normal nicht kommen.

Welches Delphi hast du? Ich bekomme bei Delphi 7 keine Meldung.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
ZO_orki Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: So 05.03.06 20:24 
Das ist lustig, ich hab auch 7...

Edit: Fehler tritt übrigens mit und ohne try except drumherum auf.
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: So 05.03.06 20:26 
Kannst du mir mal per PN das Projekt schicken? Dann guck ich es mir mal an.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: So 05.03.06 21:25 
Das Problem sollte sich erledigt haben. Der Hinweis zeigte auf eine andere Stelle im Source.

@ZO_orki: Bitte klicke unter diesem Beitrag auf "hier" in dem Text.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)