Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Month in MS DateTimePicker
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Setting Month in MS DateTimePicker
Miscellaneous
Thread ID:
00329625
Message ID:
00329625
Views:
56
I use the MS Date/Time Picker control for allowing users to select date ranges. I am trying to change the default date that is displayed when the control is initiated using the following commands in the init event of the control:

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 following macro substitiion to no avail:

local lcMonthField
lcMonthField="this.month"
&lcMonthField=month(date())

It throws the same exception.

Thanks for any input
Kirk Kelly
Next
Reply
Map
View

Click here to load this message in the networking platform