Autor Beitrag
chukalv
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 44



BeitragVerfasst: Di 10.05.05 21:02 
Why isn`t this working?

ausblenden Quelltext
1:
if pos('</head><body bgcolor=#ffffff>','a') > 0  then ShowMessage('Found!');					


I can`t just understand it...
Tobias1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: Di 10.05.05 21:07 
You mean that "a"?
a is in </head><body bgcolor=#ffffff>

Pos(searchstr,str)

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)


Zuletzt bearbeitet von Tobias1 am Di 10.05.05 21:10, insgesamt 2-mal bearbeitet
OneOfTen
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 10.05.05 21:07 
The first parameter of pos is the search item.

Pos('a','</head><body bgcolor=#ffffff>') returns 5
chukalv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 44



BeitragVerfasst: Di 10.05.05 21:13 
damn.. sorry about my stupidity...