Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid date/datetime values in specific situation
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00598441
Message ID:
00598598
Views:
19
>'Set date' command in VFP6 & VFP7 behave a bit different
>This is a note I cut & paste from VFP7 help
>"Note: When SET DATE is set to SHORT or LONG, a date before {^1601-01-01} is invalid and generates an error"

Herman,

Thank you for the heads-up. I'm "glad" to see that this new feature is at least documented in the help file. I wonder what happened on that day historically to make VFP7 cringe in disgust.

Well, now the obvious problem we have is that this new feature will crash our application if a user makes a typo in entering a date. One idea I had for a workaround is to use ON ERROR in our date textbox control to try to trap the invalid date/datetime value error.

If anyone else has any other ideas to address this issue, feel free to suggest!

Laterness,
Jon
Jon Rosenbaum
Devcon Drummer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform