×
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.
Jon Paris wrote:
>> Is it possible to "throw" custom messages from a subprocedure?
Nope - but I wish it was. Hopefully Barbara or Hans are watching the number
of requests for this feature and we'll see it at some time in the future.
You can of course cause an exception in one of a number of ways but if you
want to supply your own code you're going to have to place it in a Global
area or something.
John: I'd certainly like to see some improvements myself. But any
improvements are probably going to work the way Buck described in
his suggestion. That is, it would have to fit in with the whole
OS/400 messaging protocol. Of course, a programmer can simply write
his own easier to use wrapper for the send message API's, and then
monitor for 1299 or 9999 (or whatever the default message id's are).
But I'm still uncomfortable with the idea of using message handling
for this type of thing. Although there are advantages to using a
message based exception scheme, my own preference in this particular
case would be to return an indication of success or failure using a
status code.
Cheers! Hans
As an Amazon Associate we earn from qualifying purchases.
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.