Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Month in MS DateTimePicker
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00329625
Message ID:
00329637
Views:
19
trace through, and as you're setting the properties, make sure that the date is always valid.

I ran into the same problem the other day on some old code (someone else's), where the year was set last. When Month was set to 2, and the date was set to 29, it threw that error because the year was still 1999, and Feb 29 is invalid for 1999. Setting the year first solved the problem.

>this.year=year(date())
>this.month=month(date())
>this.day=day(date())
>
>The first and last commands work fine, but when it hits the
>month part, it throws and ole exception error 0 message. I've tried using the
Peter Franz
Previous
Reply
Map
View

Click here to load this message in the networking platform