Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
After January 1st
Message
From
27/12/1999 13:31:29
 
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00308678
Message ID:
00308836
Views:
19
Hi Ed,

I don't know if Y2KFOX handles this, but Zlatko should be aware that some older PC's will bounce the wrong date to FP on 1/1/2000 (some will send back 1900, some 1901, et al). To be really safe, if you don't know if the BIOS is compliant, one might want to wrapper all DATE() calls.

>>For some reasons I have to build an application in FOXPRO 2.6 for DOS. No big deal, but there's a problem with dates, because user doesn't like typing a 4-digit year all the time, because there will be only the dates after the January 1st 2000. The problem is that FoxPro 2.6 with SET CENTURY OFF always set the century to the 19XX and I'd like to change it to the 20XX. I've seen the Christof's Lange solution with the rollover simulation, but it means that we have to put on every date field within all the screens calls to the Y2K program for the valid, when and message event. Browsing in a command window or just a simple browse in the program code is also forbidden in the next century?
>>However, isn't there any patch from Microsoft to make a default century to the 2000?
>>
>
>Nope. The problem with developing using products that are no longer supported by the vendor is the products aren't being supported any more. Waiting until now to look at how to fix things probably wasn't a good move if money is an issue, since you've got less than a week now. I'd suggest lots of very strong coffee.
>
>Y2KFOX for DOS from Communications Horizons implements century wraparound and wraparound support for 2 digit dates (assuming you can live with windowed dates) without changing your code. It is relatively painless to install assuming that you haven't hard-coded the century in your code somewhere. It's not a cheap option at this point in time; somewhere in the $1,000 range for the LAN license. It has the advantage that if you have a ton of little things that people do from the command line, or little applets that do common maintenance tasks, you can set up a .BAT file that will invoke Y2KFOX before loading the FPDOS Developer's .EXE (and unload afterwards; it's a TSR that runs in the same VDM as FPDOS) and have it help them out, too. And I'm fairly sure it works; we started to deal with our FoxPro DOS conversion 18 months ago, and used Y2KFOX to buy us some time (we do budget projections, and started to see dates in 2000 last time this year.)
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform