Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
After January 1st
Message
De
26/12/1999 20:30:23
 
 
À
26/12/1999 20:13:21
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00308678
Message ID:
00308680
Vues:
18
>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.)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform