Jump to content

Array Failure Problem


_Kurt
 Share

Recommended Posts

Hey guys,

Whenever I hit a wrong array, the program ends right away. So I added: If Array = 1 Then MsgBox(0,"","error") but it still terminates the program. What I'm presently using is Valuater's _restart function. Is there a way to keep the program running even if the array has failed? here's the example:

$Array  = StringRegExp($Source, $Text, 3)
If $Array = 1 Then
    MsgBox(0,"","Array Error.")
    _restart()
    ;Put Something Here?
EndIf

Thanks,

Kurt

Awaiting Diablo III..

Link to comment
Share on other sites

$Array  = StringRegExp($Source, $Text, 3)

If Not IsArray($Array) Then
    MsgBox(0,"","Array Error.")
    _restart()
    ;Put Something Here?
EndIf

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

anyone else have ideas?

Don't flame those who try to help you, especially if you don't understand the solution!!! *** NO sarcasm ***

Cheers

Kurt

Edited by /dev/null

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

THANK YOU SO MUCH FOR HELPING ME!! *sarcasm*

anyone else have ideas?

Did you see me post anything even remotely looking like I was trying to be a smart-ass?

Take your sarcasm else where.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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...