Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fails introducing dates with two digits year
Message
 
To
05/01/1999 16:59:59
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00172937
Message ID:
00172952
Views:
26
>Working with VFP 5.0 if I use 'Default session' I get the year from
>1930 to 2029 when I introduce a date in the format dd/mm/yy.
>But when I use the same text control in a form with 'Private data session' it does not run.
>I have tested with 'set century', 'set century to 19 rollover 30', etc. and I get 19xx or 20xx.
>Is there anything to avoid the four digits when typing the year?

When using private data sessions a number of environment setting are overridden by the data session and set to the default settings. SET CENTURY is one of these. You probably need to SET CENTURY again within your form. I issue all the set commands to set my environment in the Load event of my base form class. See the SET DATASESSION help topic for a list of settings overridden by private data sessions
Steve Ruhl
CitiMortgage, Inc.
steven.ruhl@citibank.com Office
Steve@steven-ruhl.com Home
Previous
Reply
Map
View

Click here to load this message in the networking platform