Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6 Tip-o-the-day Strict Dates
Message
From
29/07/1998 08:30:17
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00122180
Message ID:
00122255
Views:
20
>Folks,
>
>VFP6 is much more robust in the Y2K area. There is a new command SET STRICTDATE whihc is involved with making applications very Y2K compliant. The syntax is listed below
>
>
>SET STRICTDATE TO [0 | 1 | 2]
>
>
>The Arguments
>
>0 Specifies that strict date format checking is off. When STRICTDATE is set to 0, invalid Date and DateTimes evaluate to the empty date.
>
>1 Specifies that all Date and DateTime constants be in the strict date format. Any Date or DateTime constant that is not generates an error, either during compilation, at runtime, or during an interactive Visual FoxPro session.
>
>2 Identical to setting STRICTDATE to 1, but also generates a compilation error (2033 – CTOD and CTOT can produce incorrect results) whenever CTOD( ) and CTOT( ) functions appear in code.
>
>The above is excerpted from the VFP6 Help file.


One other note about VFP 6.0 and Y2K. In current and previous versions of Fox, SET CENTURY OFF is/was the default. In VFP 6.0, this changes to SET CENTURY ON.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform