What results do you get on line 1 and 2? I get Found at 2 on both... clearly it should be 1 and 2 ?
Code: Select all
;
;
NewList content.s()
ClearList(content())
file=OpenFile(#PB_Any, #PB_Compiler_File)
While Eof(file)=0
AddElement(content())
content() = ReadString(file)
Wend
CloseFile(file)
ResetList(content())
While NextElement(content())
res = FindString(content(),";")
Debug content()+" found ';' at "+Str(res)
Wend
Erlend 'Preacher' Rovik


