Jump to content

@error


 Share

Recommended Posts

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...