d0n Posted July 22, 2009 Share Posted July 22, 2009 is there a way to do this check a variable's @error without using @error right after the variable? I have something like this and want to check the @error further down the script instead of doing it right under them $aMatch1 = StringRegExp($aLines[$i], $Pattern2, 1) $aMatch2 = StringRegExp($aLines[$i], $Pattern2, 1) if the question is unclear i'll try to clear it up :S Link to comment Share on other sites More sharing options...
billthecreator Posted July 22, 2009 Share Posted July 22, 2009 is there a way to do this check a variable's @error without using @error right after the variable? I have something like this and want to check the @error further down the script instead of doing it right under them $aMatch1 = StringRegExp($aLines[$i], $Pattern2, 1) $aMatch2 = StringRegExp($aLines[$i], $Pattern2, 1) if the question is unclear i'll try to clear it up :S Some errors return as 0. so use if $aMatch1 <> 0 then... that meants if it does not have an error, or. if $aMatch1 = 0 then... [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
d0n Posted July 22, 2009 Author Share Posted July 22, 2009 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