Sign in to follow this  
Followers 0
d0n

@error

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

THanks

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  
Followers 0