PDA

View Full Version : "PRESS TABLET STYLUS OR ANY KEY TO CONTINUE"


teoadams
05-11-2005, 06:10 AM
Hello,
this is my problem: I'd like to bypass the error in the title (which needs a manual operation and which happens when, for example, a macro is not defined) in an automatic way inside a macro. In other words: is there any command to substitute the manual hit of a key to be used inside a macro to let the macro continue if such an error should happen?
Thanks to everyone will help me.
Teo

Andy Poulsen
05-11-2005, 09:08 AM
Hi Teo,

Will the TRAP_ERROR command work for you? It allows the macro to continue after an error occurs, and then you can use the CHECK_ERROR command to see if there was an error.

for example:TRAP_ERROR {check for errors}
EDIT_PART 'my_part'
IF (CHECK_ERROR) {if error, part doesn't exist}
...
END_IF

I hope this helps!

andy

teoadams
05-11-2005, 10:10 PM
Hi Andy,
thanks for your suggestion but it doesn't work. I've also checked ME10 help about TRAP_ERROR function and it says that the execution will surely stop in case of system error or calling to undefined macro (which is my case).
So my question now can become: is there any function to bypass system error or calling to undefined macro?
Thanks
Teo

H.annes
05-17-2005, 12:21 AM
Hello,

if you have a suspicion, you can check if a certain macro exists:

IF (NOT (MACRO_EXISTS "Mymacro"))
...

This works from rev. 11 - don't know if it works in earlier releases

Regards from Austria,
Hannes