FOR lnNdx=1 TO lnNumLines IF ATC("something you want to test for",lcLines[lnNdx]) > 0 ... You found it!! Now process the text as you need ENDIF ENDFOR