how to close application error window

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
khalil
Newbie
Posts: 2
Joined: Mon May 17, 2004 7:34 pm

how to close application error window

Post by khalil » Mon May 17, 2004 7:38 pm

Application Error : The instruction at ........... The memory could not be "read".

Click on OK to terminate the program
Click on CANCEL to debug the program

the program that i use keeps crashing. is there a command or something that could close this error message ?

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Mon May 17, 2004 9:26 pm

You could check to see if the error window is open. If YES, then you could enter a click on the OK button. Then you can decide to continue or to jump to some other macro location and/or End the macro. Something like this:
IfWindowOpen>ErrorWindowName*,Close,Continue

Label>Close
PushButton>ErrorWindowName*,OK
Let>MsgString=Application Error : The memory could not be "read".
Goto>LabelName
...
...
Label>Continue
Let>MsgString=No Error Messages. Process was successful.
...
...
Label>End
Message>MsgString
Be sure to remove Trailing Space Characters from Cut/Paste on the forum.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

khalil
Newbie
Posts: 2
Joined: Mon May 17, 2004 7:34 pm

Post by khalil » Tue May 18, 2004 4:23 pm

thanks

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts