We do something similar but to avoid that we use the same field for both the
"Record Updated" and the error message, in addition we generally use *in99
for displaying the message and after each EXFMT, that indicator is turned
off and the value of msg is set to blanks.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [
mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Phil Kestenbaum
Sent: Monday, April 30, 2007 9:19 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: Field not getting cleared while Displaying Error Message on
Screen
One thought comes to mind, maybe to reset #msg before the Exfmt.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[
mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of derek gonsalves
Sent: Monday, April 30, 2007 10:05 AM
To: RPG400-L@xxxxxxxxxxxx
Subject: Field not getting cleared while Displaying Error Message on
Screen
Hi,
I have developed a new Maintenance Program. In this Program I have used
a
user defined field on the Main Screen #Msg to diaplsy the informational
messages as 'Record Added' 'Record Updated'.
This field is being cleared each time after the EXFMT of the record
fortmat.
Now when the user comes back after Updating a record, The messge is
diaplayed as 'Record Updated'. Now without Pressing Enter, if the user
enetrs invalid values and presses enter the error message is popped up(I
have used ERRMSG for the Error Messages), but the message 'Record
Updated'
still remains on the screen, though actually #Msg has been cleared and
its
value is Blank.
Any suggestions or help will be appreciated0.(I have attachecd Screen
Shots
and the code of the Main subroutine)
Thanks in Advance
Derek
As an Amazon Associate we earn from qualifying purchases.