Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forcing 4 digit entry of the century part of a date
Message
From
15/09/1998 10:25:37
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
14/09/1998 06:35:38
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00136067
Message ID:
00136722
Views:
15
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform