[futurebasic] Re: Need help

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 1998 : Group Archive : Group : All Groups

From: Peter Bancroft <pbancroft@...>
Date: Thu, 30 Apr 1998 20:36:04 +1000
Tedd

The code has a Y2k problem.
Maybe use _AbbrevDate as described on p86 of the FBII Ref Manual, and get
the right 4 digits of the string ie 1998 instead of 98.

>    a$ = DATE$
>    year$ = RIGHT$(a$,2)     <----*** ONLY 2 DIGITS RETURNED
>    month$ = LEFT$(a$,2)
>    year = VAL(year$)
>    month = VAL(month$)
>
>    LONG IF year > 93 AND month > 6
>      FN doError (Msg$)   'display error message
>
>      END                 'let's not work anymore...
>    END IF


Peter		mailto:peter@...		http://www.isoma.com