Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Easy way to globally SET CENTURY TO 20?
Message
 
 
À
03/01/2000 11:05:28
Chris Crachiolo
Blackmoor Associates Incorporated
New York City, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00311686
Message ID:
00311692
Vues:
27
>I have CENTURY set to ON in all my forms; however, even though my users can omit the year portion of a date and let it default (now) to 2000, they are in the habit of entering a two-digit year -- and since I've neglected to add SET CENTURY TO 20, this becomes 1900 when they enter "00". I know that SET CENTURY is scoped to the current data session, but is there any way to avoid editing all my forms (all of which have private data sessions)?

If you are not using the base VFP form class, you can just put that in your form class' Load method. Otherwise you are stuck putting this in all forms. THis is the prime reason for not using the VFP base classes. Create a subclass of all the VFP classes even if you are not going to change any of the defaults. Then use these subclasses [or their subclasses, etc.] exclusively.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform