Jump to content
Sign in to follow this  
gcue

[RESOLVED] stringinstr, what am i doing wrong?

Recommended Posts

gcue

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 by gcue

Share this post


Link to post
Share on other sites
system24

Try

If $firm_check = 0 Then...

@error only returns 1 if either the first or second parameter is invalid.

Edited by system24

[center]It's a question of mind over matter, if I don't mind, it doesn't matter.[/center]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.