× 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.



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

***************************************************************************
** $Scrn1 - Subroutine for Screen 1
***************************************************************************

** Functional summary of this subroutine:
**
** This subroutine is designed to display the first screen and to
** validate the value entered by the user

***************************************************************************

c $Scrn1 Begsr

* Do until <F1=End> is pressed.

c Dou *InKa = *On

c Eval #Mode = 'View'

* Display screen 1.

c Exfmt Smz01801

* Reset error field.

c Eval Errflg = 'N'
c Eval #Msg = *Blanks

c Select

* If <F1=End> is pressed then leave program.

c When *Inka = *On
c Leave

* If <F4=View by lane> is pressed then call the $Scrn2 subroutine .

c When *Inkd = *On
c Exsr $valdt
c Eval #Mode = 'View'
c If Errflg = 'N'
c Exsr $Scrn2
c Endif

* If <F6=View by product> is pressed then call the $Scrn2 subroutine .

c When *Inkf = *On
c Exsr $Valdt
c Eval #Mode = 'View'
c If Errflg = 'N'
c Exsr $Scrn4
c Endif

* If <F9=ADD> is pressed then call the $Scrn3 subroutine .

c When *Inki = *On
c Eval #Mode = 'Add'
c Exsr $Valdt
c If Errflg = 'N'
c Eval #Msg = *Blanks
c Eval *In63 = *Off
c Eval *In64 = *Off
c Exsr $Scrn3
c Endif

* If <F11=Delete> is pressed then call the $Scrn3 subroutine .

c When *Inkk = *On
c Eval #Mode = 'Delete'
c Exsr $Valdt
* No Errors
c If Errflg = 'N'
c Eval *In63 = *On
c Eval *In64 = *Off
c Exsr $Scrn3
c Endif

* If Enter is pressed then validate the Pallet Type field.

c Other

c Eval #Msg = *Blanks
c Exsr $Valdt_wh
c Exsr $Valdt_pr
c Exsr $Valdt_ln

c Endsl

c Enddo
c Endsr



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.