|
Krish, The CHECK(FE) will NOT prevent this from happening if the user can tab or move the cursor to another input field. You will need to test the numeric validity of the returned field in your program. Tim -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Krish Thirumalai Sent: Wednesday, March 02, 2005 9:50 AM To: Midrange Systems Technical Discussion Subject: Strange behaviour on a numeric field in a DSPF I happened to notice this strange behaviour on a numeric field defined in a display file after one of our customer complained about this. The numeric field is coded as follows in the DSPF A 13 42'Days 1 . . . . . .' A 13 62':' A WSDAY1 5Y 2B 13 64EDTCDE(4) If I enter 1 and hit enter the field gets populated with 1.00 (this is as expected) Days 1 . . . . . . : 1.00 If i come back to the same field and put 1 in the 1st postion and h Days 1 . . . . . . : 3 1.00 and hit enter without using field exit to blank the rest of the field the display gets populated with 301.00 (not expected ) Days 1 . . . . . . : 301.00 Have any of you noticed this behaviour before ? Is there a way to prevent this from happening other than using the CHECK(FE) keyword ? Thanks Krish -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
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.