doedit usage

Bill Randall wrandall at fptech.com
Tue Oct 7 11:15:46 PDT 2008


----- Original Message ----- 
From: "Scott Walker" <ScottWalker at RAMSystemsCorp.com>
To: <filepro-list at lists.celestial.com>
Sent: Tuesday, October 07, 2008 1:50 PM
Subject: doedit usage


>I have a sort/select process.
>
> In an input statement, the user enters a Post Date in pd(8,mdy/)
>
> If they enter "09/31/08" the edit on pd will not take it.
>
> If they enter "093108" and press <del> ONE TIME, and then press 
> <Enter>,
> the "093108" is accepted and the processing moves on to the next 
> line.
>
> Testing for @sk eq "BRKY" does not seem to prevent this since the 
> last
> @sk is really "ENTR".
>
> So I'm trying to use "doedit" as an extra check of the validity of 
> the
> date entered.
>
> I tried:
>
> dt=doedit(pd,"mdy/")
>
> Then I test to see if dt is blank, as I thought it would be since 
> the
> value of "093108" should not pass the mdy/ edit.
>
> But the value of dt shows "093108"
>
> Any suggestions?

Scott,

09/31/08 Is not a valid date and that is why it fails.

When you DEL on character and press ENTER 09310 is accepted as 
09/3/2010

You do not need to fool with this as long as people know the correct 
last day of each month

Otherwise, you will have to do a lot more programming then just a 
doedit.

Bill



More information about the Filepro-list mailing list