Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Leap Year 2000 FPW2.6
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00144937
Message ID:
00145109
Views:
37
George,

Both Christof's method and Y2KFox handle this situation. Christof uses a combination of ON READERROR and the VALID clause to add 100 years to a date that should be rolled over. I don't know how NetLib does it, but it apparently does work.

>Hi again Missy,
>
>I had another thought on your problem. I'm not so sure that any solution that's been suggested would work. I may be wrong about this, but at least in my case, if ON READERROR were in effect, my rollover function wouldn't work because it's referenced in the Valid clause of the field. I don't know about Netlib's solution, and I don't recall Christof's off the top of my head.
>
>What you could do is in the program called by ON READERROR modify the date accordingly. However, in a situation where a valid date was entered, 2/28/00, for example, it wouldn't correct it if the year 2000 was intended rather than 1900.
>
>In short, you may have to scrap the ON READERROR in order to handle all cases.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform