|
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 mailing list archive is Copyright 1997-2025 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.