Kevin --

At the risk (nay, certainty!) of not being helpful, may I refer you to
Chapter 13 of the GT.M Programmers Guide?  There are at least two
(slightly different) ways to do it.

-- Bhaskar

On Sat, 2004-09-18 at 13:50, Kevin Toppenberg wrote:
> Hello all,
> 
> In my scripting system, I allow the user to enter M
> code.  I would like to be able to catch errors, and
> prevent a crash.  I have done a little research, and
> think the answer involves $ESTACK, but haven't got it
> all figured out.  How would I change the following
> function to catch errors, and simply display a message
> that the execution failed?
> 
> MyFunct(Code)
>   if '$data(Code) quit
> 
>   ;"Need start of error trap here
>   exec Code
>   ;"Need release error trap here
> 
>   quit
> 
> 
> Thanks
> Kevin

***************************************************************************
This electronic mail transmission contains confidential and/or privileged information 
intended only for the person(s) named.  
Any use, distribution, copying or disclosure by another person is strictly prohibited.
***************************************************************************

NOTE: Ce courriel est destine exclusivement au(x) destinataire(s) mentionne(s) 
ci-dessus et peut contenir de l'information privilegiee, confidentielle et/ou 
dispensee de divulgation aux termes des lois applicables. Si vous avez recu ce message 
par erreur, ou s'il ne vous est pas destine, veuillez le mentionner immediatement a 
l'expediteur et effacer ce courriel.





-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Hardhats-members mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to