Autor Beitrag
SebastianWe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 44

Win XP Pro
Delphi 7
BeitragVerfasst: Mi 02.06.04 13:23 
Kann mir jemand sagen was hier falsch ist?
Ich habe folgenden Code:
ausblenden Delphi-Quelltext
1:
2:
3:
str := 'Quelltext einer Webseite';
String1 := '<title>';
stelle := Pos(String1,str);

Normalerweise sollte er mir doch die Stelle im Quelltext sagen, wo sich <title> befindet aber als Fehlermeldung bekomme ich nur "Inkompatible Typen: STring und Integer"
Aber wenn ich die Variablen str oder Sring1 als Integer definiere kann es ja nicht funktionieren. Was mache ich also falsch?

Moderiert von user profile iconPeter Lustig: Code- durch Delphi-Tags ersetzt.
Girgl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 281


D6 Enterprise
BeitragVerfasst: Mi 02.06.04 13:26 
vielleicht hast du stelle als string definiert?
SebastianWe Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 44

Win XP Pro
Delphi 7
BeitragVerfasst: Mi 02.06.04 13:36 
danke, das war mein fehler