Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Month View
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00750499
Message ID:
00750501
Vues:
24
>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
Caroline
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform