× 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: errmsgid keyword--unexpected results
  • From: Joel Fritz <JFritz@xxxxxxxxxxxxxxxx>
  • Date: Tue, 10 Jul 2001 08:57:54 -0700

I'm working on a screen where the user will key in one of several possible
search arguments to bring up a pick list.  To make it simpler, lets call the
arguments e-mail and name/zip.  I'm lazy, so I used the errmsgid keyword on
the e-mail and name/zip fields.  Each is conditioned by a separate indicator
and uses the same indicator as the response indicator.  

The logic is pretty simple.  Try to build a pick list.  If no records are
written to the subfile, build the error message text and turn on the error
indicator.  

The name/zip error checking works fine.  Every time the attempt to build the
pick list fails, the message appears on the message line.  The e-mail
argument only works if the first e-mail argument entered gets no hits.  If
the error occurs after a successful attempt to build a pick list based on
the e-mail argument, nothing happens.   

I ran it in debug.  The indicator goes on when the error occurs and stays on
right up the exfmt.  I put a text literal on the screen that only appears
when the error indicator is on. That works just fine.  

The code for calling the two error messages is (famous last words)
identical.  The DDS for the screen fields is identical.  I'm going nuts.  I
can always put the error on the screen a different way, but I really like
using ERRSFL and system error checking because I've never had to spend much
time on it 'til now.

Any ideas?
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-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 ...


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.