gcue Posted April 29, 2009 Share Posted April 29, 2009 (edited) i cant figure out why this doesnt error: line 61 in file = "<string>CAPIALW</string>" $firm = FileReadLine($file, 61) $firm_check = StringInStr($firm, "CAPITAL",1,1) if @error then.... Edited April 29, 2009 by gcue Link to comment Share on other sites More sharing options...
system24 Posted April 29, 2009 Share Posted April 29, 2009 (edited) Try If $firm_check = 0 Then... @error only returns 1 if either the first or second parameter is invalid. Edited April 29, 2009 by system24 [center]It's a question of mind over matter, if I don't mind, it doesn't matter.[/center] Link to comment Share on other sites More sharing options...
gcue Posted April 29, 2009 Author Share Posted April 29, 2009 perfect! thanks!!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now