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



Booth,
I have tried that in the past with input fields and have never really
liked the results.....especially if they enter an invalid date....there is
no pretty way to handle the errors....

I know what you are saying and I do use L for outputs.....





From:
Booth Martin <booth@xxxxxxxxxxxx>
To:
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
Date:
05/14/2008 01:14 PM
Subject:
Re: Date verification with multiple values on Green Screen



Have you considered defining the screen field as an "L" type field?
You ought to at least look at that choice - it may pleasantly surprise
you. A whole lot of problems just go away for you.




Doug Palme wrote:
I need to allow the users to enter any of the following values as a
valid
date type on a display file:

010108 // Six digit date

20080101 // eight digit ISO date type

01012008 // eight digit USA date type

01/01/2008 // ten digit USA date type

I thought I could check the length of the field coming in, so if
anything
is other than 6,8, or 10 it is automatically an invalid date...that part

is easy......

I wanted to check for a valid date value with the TEST(DE) but it seems
that will not work either since even though 010108 is tested as

TEST(DE) *MDY DateField;

It generates an error...which I am assuming is because the field is a
10a
and not a 6,0.

So I would need to check and make sure that it is also numeric for the 6

and 8 digit entries correct?

I know, it sounds crazy, but that is what I have been instructed to
do......


This transmission may contain information that is privileged,
confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure,
copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this
transmission in error, please immediately contact the sender and destroy

the material in its entirety, whether in electronic or hard copy format.

Thank you.

------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG.
Version: 8.0.100 / Virus Database: 269.23.16/1432 - Release Date:
5/14/2008 7:49 AM



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.