Autor Beitrag
web
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: So 12.03.06 16:08 
Tach zusammen, ...
Hab an folgender Stelle meines Proggis einen Fehler:

ausblenden Delphi-Quelltext
1:
   posm:=POS('/m', Memo2.lines.text);					


verwende den Code exact genauso aber auch in einem anderen programm. Allerdings erhalte ich bei dem einen Proggi immer folgenden Fehler:

[Fehler] Unit2.pas(1120): Operator oder Semikolon fehlt


Moderiert von user profile iconUGrohne: Topic aus Sonstiges (Delphi) verschoben am So 12.03.2006 um 16:30
Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 12.03.06 16:12 
Zeig mal ein paar Zeilen davor und nach dieser Zeile. Die alleine ist nämlich syntaktisch korrekt. Vorausgesetzt, Memo2 existiert...

_________________
We are, we were and will not be.
web Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: So 12.03.06 18:46 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
   
sleep(500);
   Main.CoolTrayIcon1.ShowBalloonHint('XXY', 'Nach /m suchen', bitInfo, 10);

// NACH /m SUCHEN.
   posm:=POS('/m', Memo2.lines.text);
// Nick auslesen
   if Posm > 0 then begin
   mzaehler:=mzaehler + 1;


das wärenmal paar zeilen vor und danach, ..
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: So 12.03.06 19:19 
Also bei mir funktioniert dein Code, also muss der Fehler noch davor oder dahinter sein.
web Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: So 12.03.06 21:24 
ja und weshalb bekomm ich dann den fehler in der Zeile ?
root_at_localhost
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 191



BeitragVerfasst: So 12.03.06 21:41 
schick mal die ganze function/prozedur
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: So 12.03.06 21:50 
Hallo

hast du posm als integer-Var deklariert oder auch keine variable, die pos heißt?

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
web Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: So 12.03.06 22:03 
variable is angelegt und ist auch ein integer, hab auch keine var die nur pos heißt.
root_at_localhost
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 191



BeitragVerfasst: So 12.03.06 22:10 
und Memo2 existiert und ist ein TMemo?
schick mal die ganze function/prozedur!
raiguen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 374

WIN 2000prof, WIN XP prof
D7EP, MSSQL, ABSDB
BeitragVerfasst: So 12.03.06 22:29 
Moin :-)

erfahrungsgemäß gibt der Compiler gerne diese Meldung (Operator oder Semikolon fehlt)zusätzlich aus, wenn er vorher auf einen anderen Fehler gestoßen ist. Von daher ist es wichtig, die vorgehenden Fehler-Meldungen zu sehen. Und natürlich dann auch das Stückchen Code, wo der Compiler die Zeilen anmeckert.

Gruß