|
>> I've got some date fields on display record defined as numeric length 8,0. ... snip ... they are displaying the new values(8-Digit dates). If there is any error in any of the field then the values even in the other date fields aren't get updated on the screen(It displays only the 6-Digits for all). If I've got to update the values in the date fields in display which aren't having errors what am I supposed to do. << You need to write the new values (WRITE op code) before you turn on any ERRMSG keywords. Create an array of bytes corresponding to the error message indicators and turn them on when an error is detected. Also turn on an ERROR flag to condition things. After all validations, check the ERROR flag. If it's on, WRITE the display with updated values and (using - as someone else pointed out - the PUTOVR and OVRDTA keywords if bandwidth is a consideration) then move the internal flags to the ERRMSG indicators, and EXFMT the display to display the errors. It seems a little silly to need to jump through hoops to display a simple error message, but that's the way it is... hth Pete -- - Pete Hall peteh@earth.inwave.com http://www.inwave.com/~peteh/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the Midrange System Mailing List! To submit a new message, * * send your mail to "MIDRANGE-L@midrange.com". To unsubscribe from * * this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe MIDRANGE-L' in the body of your message. 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-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.