Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Month View
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00750499
Message ID:
00750506
Views:
29
Thanks Caroline

That worked.

I had tried reversing the order but hadn’t tried the .Day = 1 on the first line.

Have you had the same problem?

John



>>I use a text box and a command button which calls a form with the month view control on it. I pass in the date in the text box to the month view control which then sets the month view calendar to the same date as the text box. This works fine until you pass in a date which has more date then the current month for example if I pass in the following date 30/01/2003 and the current month is February which has only 28 days the month view control display an error causing a function argument type or count us invalid.
>>
>>I think this is a problem with the month view control, has one any ideas on how to fix this?
>>
>>Thanks
>>
>>John
>
>John,
>Try something like this
	*-- Set the calendar value to the default.
>	With .oleCalendar
>		.Day = 1
>		.Year = Year(ldDate)
>		.Month = Month(ldDate)
>		.Day = Day(ldDate)
>	EndWith
>
>HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform