× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Condition handlers
  • From: "M. Lazarus" <mlazarus@xxxxxxxx>
  • Date: Tue, 19 Sep 2000 21:46:13 -0400

Pete,

At 9/19/00 09:25 AM -0500, you wrote:
>You set the 'rc' token  to CEE_HDLR_RESUME rc is passed as the third parm of
>your handler procedure. After setting this and returning from your handler,
>execution continues from the next statement after the statement that raised
>the exception.

  OK, this is good.

> > 2)  How would you identify in the CH which field contains the error?  This
> > is an issue, since the record contains many numeric fields that can
> > potentially have an error.  Also, the idea is to avoid putting all the
> > extra error checking in the mainline program after each calc.
>
>This is down to your code !, But the second parm passed to your handler
>procedure can be a pointer to anything. You could set this up to point to
>the data, where the handler could then examine it.

  Can an operational descriptor be used too?  That would enable some degree 
of flexibility.  How do I determine what the name of the field is, so it 
can be looked up in a rules table and then checked / modified to suit?


> > 3)  Once control is returned to the program, does the CH need to be
> > registered again?  Or is it still active in order to trap the next error?
>
>They remain active until you issue the unregister CEEHDLU API

  Is this scoped to the program or the activation group?

  Thanks!

  -mark

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.