Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forcing 4 digit entry of the century part of a date
Message
De
15/09/1998 10:25:37
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
14/09/1998 06:35:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00136067
Message ID:
00136722
Vues:
14
>We have a situation where bonds are maturing in more than 100 years time. Hence we need to ensure that we can trap when a user enters a two digit century, and force the user to enter 4 digits. - Looks simple enough!
>
>Unfortunately it seems that VFP's SET CENTURY xx ROLLOVER nn functionality fires before the valid event of the text-box and therefore makes an assumption, which in this instance is invalid.
>
>

First, Set Century On and force a four digit year. If you don't want to do that, have the user enter the starting date, and number of years/months of expiry period, then simply calculate the expiry date and show it.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform