Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxpro Dos Question?
Message
De
03/11/1998 12:46:21
 
 
À
03/11/1998 11:40:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00153969
Message ID:
00154013
Vues:
44
>I have a foxpro 2.6 dos app.
>
>I was wondering if there is a setting I can set so that foxpro will roll a user entered date to the correct date. So if they enter say '02/02/00' it will not come out as '02/02/1900' but '02/02/2000'.
>
>I know this can be done in Visual foxpro with the rollover part of the
>set century command.
>
>Any help would be appreciated.

I've had to retrofit a few screens where a user enters a date and what I did was ...
SET CENTURY ON
in the WHEN

and

SET CENTURY OFF
in the VALID.

This doesn't protect against a worst-case user, but it's quick and easy and allows the user to decide if the date should be 2005 or 1905....

HTH,
Paul M.
MCSE/MCSA/MCT/MCP+I, A+, Network+, I-Net+
Nil carborundum illegitimi.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform