Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set century to .....
Message
From
04/07/2002 10:59:47
 
 
To
04/07/2002 10:49:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00675346
Message ID:
00675352
Views:
9
>hi all,
>
>when i enter a date for example - 25 May 63, the system displays 25 may 2063. why ?? i have the following code set in my form.
>
>Set Century On
>Set Century to 19 RollOver 80
>
>pls assist me.
>
>sincere thanks in advance
All dates with year number > 80 are assumed to be from 20th century (19xx) with your setting.

From VFP help:


For example, if the current year is 1998 and nYear is the default (48), any date entered without a century portion and a year of 48 or greater is considered to be in the current century (the 20th century). Any date entered without a century portion but with a year before 48 is considered to be in the next century (the 21st century).

Replace 48 with 80 in the text above to get a clue

HTH
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Previous
Reply
Map
View

Click here to load this message in the networking platform